home *** CD-ROM | disk | FTP | other *** search
/ User's Choice Windows CD / User's Choice Windows CD (CMS Software)(1993).iso / utility1 / gs261src.zip / UNIX-CC.MAK < prev    next >
Makefile  |  1993-05-29  |  70KB  |  1,947 lines

  1. #    Copyright (C) 1989, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  2. #
  3. # This file is part of Ghostscript.
  4. #
  5. # Ghostscript is distributed in the hope that it will be useful, but
  6. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. # to anyone for the consequences of using it or for whether it serves any
  8. # particular purpose or works at all, unless he says so in writing.  Refer
  9. # to the Ghostscript General Public License for full details.
  10. #
  11. # Everyone is granted permission to copy, modify and redistribute
  12. # Ghostscript, but only under the conditions described in the Ghostscript
  13. # General Public License.  A copy of this license is supposed to have been
  14. # given to you along with Ghostscript so you can know your rights and
  15. # responsibilities.  It should be in a file named COPYING.  Among other
  16. # things, the copyright notice and this notice must be preserved on all
  17. # copies.
  18.  
  19. # makefile for Ghostscript, Unix/cc/X11 configuration.
  20.  
  21. # ------------------------------- Options ------------------------------- #
  22.  
  23. ####### The following are the only parts of the file you should need to edit.
  24.  
  25. # ------ Generic options ------ #
  26.  
  27. # Define the installation commands and target directories for
  28. # executables and files.  Only relevant to `make install'.
  29.  
  30. INSTALL = install -c
  31. INSTALL_PROGRAM = $(INSTALL) -m 775
  32. INSTALL_DATA = $(INSTALL) -m 664
  33.  
  34. prefix = /usr/local
  35. exec_prefix = $(prefix)
  36. bindir = $(exec_prefix)/bin
  37. datadir = $(prefix)/lib
  38. gsdatadir = $(datadir)/ghostscript
  39.  
  40. # Define the default directory/ies for the runtime
  41. # initialization and font files.  Separate multiple directories with a :.
  42.  
  43. GS_LIB_DEFAULT=$(gsdatadir):$(gsdatadir)/fonts
  44.  
  45. # Define the name of the Ghostscript initialization file.
  46. # (There is no reason to change this.)
  47.  
  48. GS_INIT=gs_init.ps
  49.  
  50. # Choose generic configuration options.
  51.  
  52. # -DDEBUG
  53. #    includes debugging features (-Z switch) in the code.
  54. #      Code runs substantially slower even if no debugging switches
  55. #      are set.
  56. # -DNOPRIVATE
  57. #    makes private (static) procedures and variables public,
  58. #      so they are visible to the debugger and profiler.
  59. #      No execution time or space penalty.
  60.  
  61. GENOPT=
  62.  
  63. # Define the name of the executable file.
  64.  
  65. GS=gs
  66.  
  67. # ------ Platform-specific options ------ #
  68.  
  69. # Define the other compilation flags.
  70. # Add -DBSD4_2 for 4.2bsd systems.
  71. # Add -DSYSV for System V.
  72. # Add -DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before,
  73. #   or any System III Unix, or System V release 3-or-older Unix.
  74. #   Add -Xa if your compiler accepts it.
  75. # Add -DSVR4 (not -DSYSV) for System V release 4.
  76. # XCFLAGS can be set from the command line.
  77.  
  78. CFLAGS=-O $(XCFLAGS)
  79.  
  80. # Define platform flags for ld.
  81. # SunOS and some others want -X; Ultrix wants -x.
  82. # SunOS 4.n may need -Bstatic.
  83. # XLDFLAGS can be set from the command line.
  84.  
  85. LDFLAGS=$(XLDFLAGS)
  86.  
  87. # Define any extra libraries to link into the executable.
  88. # ISC Unix 2.2 wants -linet.
  89. # SCO Unix needs -lsocket if you aren't including the X11 driver.
  90. # (Libraries required by individual drivers are handled automatically.)
  91.  
  92. EXTRALIBS=
  93.  
  94. # Define the include switch(es) for the X11 header files.
  95. # This can be null if handled in some other way (e.g., the files are
  96. # in /usr/include, or the directory is supplied by an environment variable).
  97. # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
  98. # not in $(XINCLUDE).
  99.  
  100. XINCLUDE=-I/usr/local/X/include
  101.  
  102. # Define the directory/ies for the X11 library files.
  103. # This can be null if these files are in the default linker search path.
  104.  
  105. XLIBDIRS=-L/usr/local/X/lib
  106.  
  107. # ------ Devices and features ------ #
  108.  
  109. # Choose the language feature(s) to include.  See gs.mak for details.
  110.  
  111. FEATURE_DEVS=filter.dev dps.dev level2.dev
  112.  
  113. # Choose the device(s) to include.  See devs.mak for details.
  114.  
  115. DEVICE_DEVS=x11.dev
  116. DEVICE_DEVS9=pbm.dev pbmraw.dev pgm.dev pgmraw.dev ppm.dev ppmraw.dev bit.dev
  117.  
  118. # ---------------------------- End of options --------------------------- #
  119.  
  120. # Define the name of the makefile -- used in dependencies.
  121.  
  122. MAKEFILE=unix-cc.mak
  123.  
  124. # Define the ANSI-to-K&R dependency.
  125.  
  126. AK=ansi2knr$(XE)
  127.  
  128. # Define the compilation rules and flags.
  129.  
  130. CCC=$(SHP)ccgs "$(CC) $(CCFLAGS)"
  131.  
  132. # --------------------------- Generic makefile ---------------------------- #
  133.  
  134. # The remainder of the makefile (unixhead.mak, gs.mak, devs.mak, unixtail.mak)
  135. # is generic.  tar_cat concatenates all these together.
  136. #    Copyright (C) 1990, 1991, 1993 Aladdin Enterprises.  All rights reserved.
  137. #
  138. # This file is part of Ghostscript.
  139. #
  140. # Ghostscript is distributed in the hope that it will be useful, but
  141. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  142. # to anyone for the consequences of using it or for whether it serves any
  143. # particular purpose or works at all, unless he says so in writing.  Refer
  144. # to the Ghostscript General Public License for full details.
  145. #
  146. # Everyone is granted permission to copy, modify and redistribute
  147. # Ghostscript, but only under the conditions described in the Ghostscript
  148. # General Public License.  A copy of this license is supposed to have been
  149. # given to you along with Ghostscript so you can know your rights and
  150. # responsibilities.  It should be in a file named COPYING.  Among other
  151. # things, the copyright notice and this notice must be preserved on all
  152. # copies.
  153.  
  154. # Partial makefile for Ghostscript, common to all Unix configurations.
  155.  
  156. # This part of the makefile gets inserted after the compiler-specific part
  157. # (xxx-head.mak) and before gs.mak and devs.mak.
  158.  
  159. # ----------------------------- Generic stuff ----------------------------- #
  160.  
  161. # Define the platform name.  For a "stock" System V platform,
  162. # use sysv_ instead of unix_.
  163.  
  164. PLATFORM=unix_
  165.  
  166. # Define the extensions for the object and executable files.
  167.  
  168. OBJ=o
  169. XE=
  170.  
  171. # Define the current directory prefix, shell quote string, and shell names.
  172.  
  173. EXP=./
  174. QQ=\"
  175. SHELL=/bin/sh
  176. SH=$(SHELL)
  177. SHP=$(SH) $(EXP)
  178.  
  179. # Define the compilation rules and flags.
  180.  
  181. CCFLAGS=$(GENOPT) $(CFLAGS)
  182.  
  183. .c.o: $(AK)
  184.     $(CCC) $*.c
  185.  
  186. CCCF=$(CCC)
  187. CCD=$(CCC)
  188. CCINT=$(CCC)
  189. #    Copyright (C) 1989, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  190. #
  191. # This file is part of Ghostscript.
  192. #
  193. # Ghostscript is distributed in the hope that it will be useful, but
  194. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  195. # to anyone for the consequences of using it or for whether it serves any
  196. # particular purpose or works at all, unless he says so in writing.  Refer
  197. # to the Ghostscript General Public License for full details.
  198. #
  199. # Everyone is granted permission to copy, modify and redistribute
  200. # Ghostscript, but only under the conditions described in the Ghostscript
  201. # General Public License.  A copy of this license is supposed to have been
  202. # given to you along with Ghostscript so you can know your rights and
  203. # responsibilities.  It should be in a file named COPYING.  Among other
  204. # things, the copyright notice and this notice must be preserved on all
  205. # copies.
  206.  
  207. # Generic makefile for Ghostscript.
  208. # The platform-specific makefiles `include' this file.
  209. # They define the following symbols:
  210. #    GS - the name of the executable (without the extension, if any).
  211. #    GS_LIB_DEFAULT - the default directory/ies for searching for the
  212. #        initialization and font files at run time.
  213. #    DEVICE_DEVS - the devices to include in the executable.
  214. #        See devs.mak for details.
  215. #    DEVICE_DEVS1...DEVICE_DEVS9 - additional devices, if the definition of
  216. #        DEVICE_DEVS doesn't fit on one line.
  217. #        See devs.mak for details.
  218. #    FEATURE_DEVS - the optional features to include in the
  219. #        executable.  Current features are:
  220. #            dps - (partial) support for Display PostScript extensions:
  221. #            see language.doc for details.
  222. #            level2 - (partial) support for PostScript Level 2
  223. #            extensions: see language.doc for details.
  224. #            compfont - support for composite (type 0) fonts.
  225. #            *** NOT IMPLEMENTED YET. ***
  226. #            filter - support for Level 2 filters (other than eexec,
  227. #            ASCIIHexEncode/Decode, NullEncode, PFBDecode,
  228. #            and SubFileDecode, which are always included).
  229. #            ccfonts - precompile fonts into C, and link them
  230. #            with the executable.  In the standard makefiles,
  231. #            this is only implemented for a very few fonts:
  232. #            see fonts.doc for details.
  233. # It is very unlikely that anyone would want to edit the remaining
  234. #   symbols, but we describe them here for completeness:
  235. #    GS_INIT - the name of the initialization file for Ghostscript,
  236. #        normally gs_init.ps.
  237. #    PLATFORM - a "device" name for the platform, so that platforms can
  238. #        add various kinds of resources like devices and features.
  239. #    QQ - a " preceded by whatever escape characters are needed to
  240. #        persuade the shell to pass a " to a program (" on MS-DOS,
  241. #        \" on Unix).
  242. #    XE - the extension for executable files (e.g., null or .exe).
  243. #    OBJ - the extension for relocatable object files (e.g., o or obj).
  244. #    BEGINFILES - the list of files that `make begin' should delete.
  245. #    CCBEGIN - the compilation command for `make begin', normally
  246. #        $(CCC) *.c.
  247. #    CCC - the C invocation for normal compilation.
  248. #    CCD - the C invocation for files that store into frame buffers or
  249. #        device registers.  Needed because some optimizing compilers
  250. #        will eliminate necessary stores.
  251. #    CCCF - the C invocation for compiled fonts and other large,
  252. #        self-contained data modules.  Needed because MS-DOS
  253. #        requires using the 'huge' memory model for these.
  254. #    CCINT - the C invocation for compiling the main interpreter module,
  255. #        normally the same as CCC: this is needed because the
  256. #        Borland compiler generates *worse* code for this module
  257. #        (but only this module) when optimization (-O) is turned on.
  258. #    AK - if source files must be converted from ANSI to K&R syntax,
  259. #        this is ansi2knr$(XE); if not, it is null.
  260. #        If a particular platform requires other utility programs
  261. #        to be built, AK must include them too.
  262. #    SHP - the prefix for invoking a shell script in the current directory
  263. #        (null for MS-DOS, $(SH) ./ for Unix).
  264. #    EXPP, EXP - the prefix for invoking an executable program in the
  265. #        current directory (null for MS-DOS, ./ for Unix).
  266. #    SH - the shell for scripts (null on MS-DOS, sh on Unix).
  267. # The platform-specific makefiles must also include rules for creating
  268. #   ansi2knr$(XE), genarch$(XE), and genconf$(XE) from the corresponding
  269. #   .c files -- this is needed because Turbo C and Unix C treat the -o
  270. #   switch slightly differently (Turbo C requires no following space,
  271. #   Unix C requires a following space), and I haven't found a way to capture
  272. #   the difference in a macro.
  273.  
  274. all default: $(GS)$(XE)
  275.  
  276. distclean realclean: clean
  277.     rm -f makefile
  278.  
  279. clean mostlyclean:
  280.     rm -f *.$(OBJ) *.a core gmon.out
  281.     rm -f *.dev *.d_* arch.h gconfig*.h o*.tr l*.tr
  282.     rm -f t _temp_* _temp_*.* *.map *.sym
  283.     rm -f ansi2knr$(XE) echogs$(XE) genarch$(XE) genconf$(XE)
  284.     rm -f $(GS)$(XE) $(BEGINFILES)
  285.  
  286. # A rule to do a quick and dirty compilation attempt when first installing
  287. # Ghostscript.  Many of the compilations will fail: follow this with 'make'.
  288.  
  289. begin:
  290.     rm -f arch.h genarch$(XE) $(GS)$(XE) $(BEGINFILES)
  291.     make arch.h
  292.     - $(CCBEGIN)
  293.     rm -f gconfig.$(OBJ) gdev*.$(OBJ) gp_*.$(OBJ) gsmisc.$(OBJ)
  294.     rm -f iccfont.$(OBJ) iinit.$(OBJ) interp.$(OBJ) zfiledev.$(OBJ)
  295.  
  296. # Auxiliary programs
  297.  
  298. arch.h: genarch$(XE)
  299.     $(EXPP) $(EXP)genarch arch.h
  300.  
  301. # -------------------------------- Library -------------------------------- #
  302.  
  303. # Define the inter-dependencies of the .h files.
  304. # Since not all versions of `make' defer expansion of macros,
  305. # we must list these in bottom-to-top order.
  306.  
  307. # Generic files
  308.  
  309. arch_h=arch.h
  310. std_h=std.h $(arch_h)
  311.  
  312. # Platform interfaces
  313.  
  314. gp_h=gp.h
  315. gpcheck_h=gpcheck.h
  316.  
  317. # C library interfaces
  318.  
  319. # Because of variations in the "standard" header files between systems, and
  320. # because we must include std.h before any file that includes sys/types.h,
  321. # we define local include files named *_.h to substitute for <*.h>.
  322.  
  323. vmsmath_h=vmsmath.h
  324.  
  325. dos__h=dos_.h
  326. ctype__h=ctype_.h $(std_h)
  327. errno__h=errno_.h
  328. malloc__h=malloc_.h $(std_h)
  329. math__h=math_.h $(std_h) $(vmsmath_h)
  330. memory__h=memory_.h $(std_h)
  331. stat__h=stat_.h $(std_h)
  332. stdio__h=stdio_.h $(std_h)
  333. string__h=string_.h $(std_h)
  334. time__h=time_.h $(std_h)
  335. windows__h=windows_.h
  336.  
  337. # Miscellaneous
  338.  
  339. gdebug_h=gdebug.h
  340. gsio_h=gsio.h
  341. gstypes_h=gstypes.h
  342. gs_h=gs.h $(stdio__h) $(gsio_h) $(gstypes_h)
  343. gx_h=gx.h $(gs_h) $(gdebug_h)
  344. gconfig_h=gconfig.h gsconfig.h
  345. gserrors_h=gserrors.h
  346.  
  347. GX=$(AK) $(gx_h)
  348. GXERR=$(GX) $(gserrors_h)
  349.  
  350. ###### Low-level facilities and utilities
  351.  
  352. ### Include files
  353.  
  354. gsccode_h=gsccode.h
  355. gschar_h=gschar.h $(gsccode_h)
  356. gscie_h=gscie.h
  357. gscolor_h=gscolor.h
  358. gscolor2_h=gscolor2.h
  359. gscoord_h=gscoord.h
  360. gscrypt1_h=gscrypt1.h
  361. gscspace_h=gscspace.h
  362. gsfont_h=gsfont.h
  363. gsimage_h=gsimage.h
  364. gsmatrix_h=gsmatrix.h
  365. gspaint_h=gspaint.h
  366. gspath_h=gspath.h
  367. gsprops_h=gsprops.h
  368. gsstate_h=gsstate.h $(gscolor_h)
  369. gstype1_h=gstype1.h
  370. gsuid_h=gsuid.h
  371. gsutil_h=gsutil.h
  372. gsxfont_h=gsxfont.h
  373.  
  374. gxarith_h=gxarith.h
  375. gxbitmap_h=gxbitmap.h
  376. gxcache_h=gxcache.h $(gsuid_h) $(gsxfont_h)
  377. gxcdir_h=gxcdir.h
  378. gxchar_h=gxchar.h $(gschar_h)
  379. gxclist_h=gxclist.h
  380. # gxcldev is out of order because it include gxclist.
  381. gxcldev_h=gxcldev.h $(gxclist_h)
  382. gxcpath_h=gxcpath.h
  383. gxdevice_h=gxdevice.h $(gsmatrix_h) $(gsxfont_h) $(gxbitmap_h)
  384. gxdevmem_h=gxdevmem.h
  385. gxfdir_h=gxfdir.h $(gxcdir_h)
  386. gxfixed_h=gxfixed.h
  387. gxfont_h=gxfont.h $(gsfont_h) $(gsuid_h)
  388. gxfrac_h=gxfrac.h
  389. gximage_h=gximage.h $(gscspace_h) $(gsimage_h)
  390. gxlum_h=gxlum.h
  391. gxmatrix_h=gxmatrix.h $(gsmatrix_h)
  392. gxop1_h=gxop1.h
  393. gxpath_h=gxpath.h
  394. gxrefct_h=gxrefct.h
  395. gxtype1_h=gxtype1.h $(gscrypt1_h) $(gstype1_h)
  396. gxxfont_h=gxxfont.h $(gsccode_h) $(gsmatrix_h) $(gsuid_h) $(gsxfont_h)
  397. # gxcolor and gxfmap are out of order because they include other files.
  398. gxcolor_h=gxcolor.h $(gxfrac_h) $(gsuid_h)
  399. gxfmap_h=gxfmap.h $(gxfrac_h) $(gxrefct_h)
  400.  
  401. gzcolor_h=gzcolor.h $(gscolor_h) $(gxfmap_h) $(gxlum_h)
  402. gzdevice_h=gzdevice.h $(gxdevice_h)
  403. gzht_h=gzht.h
  404. gzline_h=gzline.h
  405. gzpath_h=gzpath.h $(gxpath_h)
  406. gzstate_h=gzstate.h $(gsstate_h) $(gxfixed_h) $(gxmatrix_h)
  407.  
  408. ### Executable code
  409.  
  410. gp_nofb.$(OBJ): gp_nofb.c $(AK) \
  411.   $(gx_h) $(gp_h) $(gxdevice_h)
  412.  
  413. gsutil.$(OBJ): gsutil.c $(AK) \
  414.   $(std_h) $(gsprops_h) $(gsutil_h)
  415.  
  416. gxccache.$(OBJ): gxccache.c $(GXERR) $(gpcheck_h) \
  417.   $(gxfixed_h) $(gxmatrix_h) $(gzdevice_h) $(gzcolor_h) \
  418.   $(gxcpath_h) $(gxdevmem_h) $(gxfont_h) $(gxfdir_h) $(gxchar_h) \
  419.   $(gxcache_h) $(gxxfont_h) $(gzstate_h) $(gzpath_h) \
  420.   $(gscspace_h) $(gsimage_h)
  421.  
  422. gxccman.$(OBJ): gxccman.c $(GXERR) $(gpcheck_h) \
  423.   $(gxfixed_h) $(gxmatrix_h) $(gzdevice_h) $(gzcolor_h) \
  424.   $(gxcpath_h) $(gxdevmem_h) $(gxfont_h) $(gxfdir_h) $(gxchar_h) \
  425.   $(gxcache_h) $(gxxfont_h) $(gzstate_h) $(gzpath_h)
  426.  
  427. gxclist.$(OBJ): gxclist.c $(GXERR) $(gpcheck_h) \
  428.   $(gsmatrix_h) $(gxbitmap_h) $(gxcldev_h) $(gxdevice_h) $(gxdevmem_h)
  429.  
  430. gxclread.$(OBJ): gxclread.c $(GXERR) $(gpcheck_h) \
  431.   $(gsmatrix_h) $(gxbitmap_h) $(gxcldev_h) $(gxdevice_h) $(gxdevmem_h)
  432.  
  433. gxcmap.$(OBJ): gxcmap.c $(GXERR) \
  434.   $(gscspace_h) \
  435.   $(gxcolor_h) $(gxdevice_h) $(gxfrac_h) $(gxlum_h) \
  436.   $(gzcolor_h) $(gzstate_h)
  437.  
  438. gxcpath.$(OBJ): gxcpath.c $(GXERR) \
  439.   $(gxdevice_h) $(gxfixed_h) $(gzcolor_h) $(gzpath_h) $(gxcpath_h)
  440.  
  441. gxdither.$(OBJ): gxdither.c $(GX) \
  442.   $(gxfixed_h) $(gxlum_h) $(gxmatrix_h) $(gzstate_h) $(gzdevice_h) $(gzcolor_h) $(gzht_h)
  443.  
  444. gxdraw.$(OBJ): gxdraw.c $(GXERR) $(gpcheck_h) \
  445.   $(gxfixed_h) $(gxmatrix_h) $(gxbitmap_h) $(gzcolor_h) $(gzdevice_h) $(gzstate_h)
  446.  
  447. gxfill.$(OBJ): gxfill.c $(GXERR) \
  448.   $(gxfixed_h) $(gxmatrix_h) $(gxdevice_h) $(gzcolor_h) $(gzpath_h) $(gzstate_h) $(gxcpath_h)
  449.  
  450. gxhint1.$(OBJ): gxhint1.c $(GXERR) \
  451.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxdevmem_h) $(gxchar_h) $(gxfont_h) $(gxtype1_h) \
  452.   $(gzdevice_h) $(gzstate_h)
  453.  
  454. gxhint2.$(OBJ): gxhint2.c $(GXERR) \
  455.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxdevmem_h) $(gxchar_h) $(gxfont_h) $(gxtype1_h) $(gxop1_h) \
  456.   $(gzdevice_h) $(gzstate_h)
  457.  
  458. gxht.$(OBJ): gxht.c $(GXERR) \
  459.   $(gxfixed_h) $(gxmatrix_h) $(gxbitmap_h) $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzht_h)
  460.  
  461. gxpath.$(OBJ): gxpath.c $(GXERR) \
  462.   $(gxfixed_h) $(gzpath_h)
  463.  
  464. gxpath2.$(OBJ): gxpath2.c $(GXERR) \
  465.   $(gxfixed_h) $(gxarith_h) $(gzpath_h)
  466.  
  467. gxpcopy.$(OBJ): gxpcopy.c $(GXERR) \
  468.   $(gxfixed_h) $(gxarith_h) $(gzpath_h)
  469.  
  470. gxstroke.$(OBJ): gxstroke.c $(GXERR) $(gpcheck_h) \
  471.   $(gscoord_h) $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) \
  472.   $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzline_h) $(gzpath_h)
  473.  
  474. ###### High-level facilities
  475.  
  476. gschar.$(OBJ): gschar.c $(GXERR) \
  477.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gzdevice_h) $(gxdevmem_h) $(gxfont_h) $(gxchar_h) $(gxcache_h) $(gstype1_h) $(gspath_h) $(gzpath_h) $(gzcolor_h) $(gzstate_h)
  478.  
  479. gscolor.$(OBJ): gscolor.c $(GXERR) \
  480.   $(gscspace_h) $(gxcolor_h) $(gxdevice_h) $(gxrefct_h) \
  481.   $(gzstate_h) $(gzcolor_h)
  482.  
  483. gscoord.$(OBJ): gscoord.c $(GXERR) \
  484.   $(gsccode_h) $(gxarith_h) $(gxfixed_h) $(gxfont_h) $(gxmatrix_h) \
  485.   $(gzdevice_h) $(gzstate_h) $(gscoord_h)
  486.  
  487. gsdevice.$(OBJ): gsdevice.c $(GXERR) \
  488.   $(gxarith_h) $(gsprops_h) $(gsutil_h) $(gxbitmap_h) $(gxdevmem_h) \
  489.   $(gzstate_h) $(gzdevice_h)
  490.  
  491. gsfile.$(OBJ): gsfile.c $(GXERR) \
  492.   $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h)
  493.  
  494. gsfont.$(OBJ): gsfont.c $(GXERR) \
  495.   $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) $(gxfont_h) $(gxfdir_h) \
  496.   $(gzstate_h)
  497.  
  498. gsht.$(OBJ): gsht.c $(GXERR) \
  499.   $(gzht_h) $(gzstate_h)
  500.  
  501. gsimage.$(OBJ): gsimage.c $(GXERR) $(gpcheck_h) \
  502.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gspaint_h) \
  503.   $(gzcolor_h) $(gzdevice_h) $(gzpath_h) $(gzstate_h) \
  504.   $(gxcolor_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  505.  
  506. gsimage1.$(OBJ): gsimage1.c $(GXERR) $(gpcheck_h) \
  507.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gscspace_h) $(gspaint_h) \
  508.   $(gzcolor_h) $(gzdevice_h) $(gzpath_h) $(gzstate_h) \
  509.   $(gxcolor_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  510.  
  511. gsimage2.$(OBJ): gsimage2.c $(GXERR) $(gpcheck_h) \
  512.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gscspace_h) $(gspaint_h) \
  513.   $(gzcolor_h) $(gzdevice_h) $(gzpath_h) $(gzstate_h) \
  514.   $(gxcolor_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  515.  
  516. gsimpath.$(OBJ): gsimpath.c $(GXERR) \
  517.   $(gsmatrix_h) $(gsstate_h) $(gspath_h)
  518.  
  519. gsline.$(OBJ): gsline.c $(GXERR) \
  520.   $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzline_h)
  521.  
  522. gsmatrix.$(OBJ): gsmatrix.c $(GXERR) \
  523.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h)
  524.  
  525. gsmisc.$(OBJ): gsmisc.c $(GX) $(errno__h) $(malloc__h) $(memory__h) $(MAKEFILE)
  526.     $(CCC) -DUSE_ASM=0$(USE_ASM) gsmisc.c
  527.  
  528. gspaint.$(OBJ): gspaint.c $(GXERR) $(gpcheck_h) \
  529.   $(gxfixed_h) $(gxmatrix_h) $(gspaint_h) $(gzpath_h) $(gzstate_h) $(gzdevice_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  530.  
  531. gspath.$(OBJ): gspath.c $(GXERR) \
  532.   $(gxfixed_h) $(gxmatrix_h) $(gxpath_h) $(gzstate_h)
  533.  
  534. gspath2.$(OBJ): gspath2.c $(GXERR) \
  535.   $(gspath_h) $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzpath_h) $(gzdevice_h)
  536.  
  537. gsstate.$(OBJ): gsstate.c $(GXERR) \
  538.   $(gscie_h) $(gscolor2_h) $(gscspace_h) $(gxcolor_h) $(gxrefct_h) \
  539.   $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzht_h) $(gzline_h) $(gzpath_h)
  540.  
  541. gstdev.$(OBJ): gstdev.c $(GXERR) \
  542.   $(gxbitmap_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h)
  543.  
  544. gstype1.$(OBJ): gstype1.c $(GXERR) \
  545.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxchar_h) $(gxdevmem_h) $(gxop1_h) $(gxtype1_h) \
  546.   $(gzstate_h) $(gzdevice_h) $(gzpath_h)
  547.  
  548. ###### The internal devices
  549.  
  550. gdevmem_h=gdevmem.h
  551.  
  552. gdevemap.$(OBJ): gdevemap.c $(AK) $(std_h)
  553.  
  554. gdevmem1.$(OBJ): gdevmem1.c $(AK) \
  555.   $(gx_h) $(gserrors_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  556.  
  557. gdevmem2.$(OBJ): gdevmem2.c $(AK) \
  558.   $(gx_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  559.  
  560. gdevmem3.$(OBJ): gdevmem3.c $(AK) \
  561.   $(gx_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  562.  
  563. ###### Files dependent on the installed devices, features, and platform.
  564. # Generating gconfig.h also generates o*.tr and l*.tr.
  565.  
  566. # gconfig.h shouldn't have to depend on ALL_DEVS, but that would
  567. # involve rewriting gsconfig to only save the device name, not the
  568. # contents of the <device>.D_# files.
  569.  
  570. ALL_DEVS=$(FEATURE_DEVS) $(PLATFORM).dev \
  571.   $(DEVICE_DEVS) $(DEVICE_DEVS1) \
  572.   $(DEVICE_DEVS2) $(DEVICE_DEVS3) $(DEVICE_DEVS4) $(DEVICE_DEVS5)\
  573.   $(DEVICE_DEVS6) $(DEVICE_DEVS7) $(DEVICE_DEVS8) $(DEVICE_DEVS9)
  574.  
  575. gconfig.h obj.tr objw.tr ld.tr lib.tr: \
  576.   devs.mak $(MAKEFILE) echogs$(XE) genconf$(XE) $(ALL_DEVS)
  577.     $(EXP)echogs -w t.cfg - $(FEATURE_DEVS) $(PLATFORM).dev
  578.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS)
  579.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS1)
  580.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS2)
  581.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS3)
  582.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS4)
  583.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS5)
  584.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS6)
  585.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS7)
  586.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS8)
  587.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS9)
  588.     $(EXP)genconf @t.cfg -h gconfig.h -l lib.tr -o obj.tr -u ld.tr -w objw.tr
  589.     rm t.cfg
  590.     $(EXP)echogs -a gconfig.h -x 23 define GS_LIB_DEFAULT -x 2022 $(GS_LIB_DEFAULT) -x 22
  591.     $(EXP)echogs -a gconfig.h -x 23 define GS_INIT -x 2022 $(GS_INIT) -x 22
  592.  
  593. gconfig.$(OBJ): gconfig.c $(AK) $(gconfig_h) $(MAKEFILE)
  594.  
  595. ###### On Unix, we pre-link all of the library except the back end.
  596. ###### On MS-DOS, we have to do the whole thing at once.
  597.  
  598. LIBGS=gschar.$(OBJ) gscolor.$(OBJ) gscoord.$(OBJ) \
  599.  gsdevice.$(OBJ) gsfile.$(OBJ) gsfont.$(OBJ) gsht.$(OBJ) \
  600.  gsimage.$(OBJ) gsimage1.$(OBJ) gsimage2.$(OBJ) \
  601.  gsimpath.$(OBJ) gsline.$(OBJ) gsmatrix.$(OBJ) gsmisc.$(OBJ) \
  602.  gspaint.$(OBJ) gspath.$(OBJ) gspath2.$(OBJ) \
  603.  gsstate.$(OBJ) gstdev.$(OBJ) gstype1.$(OBJ) gsutil.$(OBJ) \
  604.  gxccache.$(OBJ) gxccman.$(OBJ) gxclist.$(OBJ) gxclread.$(OBJ) \
  605.  gxcmap.$(OBJ) gxcpath.$(OBJ) \
  606.  gxdither.$(OBJ) gxdraw.$(OBJ) gxfill.$(OBJ) \
  607.  gxhint1.$(OBJ) gxhint2.$(OBJ) gxht.$(OBJ) \
  608.  gxpath.$(OBJ) gxpath2.$(OBJ) gxpcopy.$(OBJ) gxstroke.$(OBJ) \
  609.  gdevmem1.$(OBJ) gdevmem2.$(OBJ) gdevmem3.$(OBJ) gconfig.$(OBJ)
  610.  
  611. # ------------------------------ Interpreter ------------------------------ #
  612.  
  613. ###### Include files
  614.  
  615. alloc_h=alloc.h
  616. astate_h=astate.h
  617. ccfont_h=ccfont.h
  618. dict_h=dict.h
  619. dparam_h=dparam.h
  620. dstack_h=dstack.h
  621. errors_h=errors.h
  622. estack_h=estack.h
  623. filedev_h=filedev.h
  624. files_h=files.h
  625. font_h=font.h
  626. ilevel_h=ilevel.h
  627. iname_h=iname.h
  628. iref_h=iref.h
  629. iscan_h=iscan.h
  630. ivmspace_h=ivmspace.h
  631. iutil_h=iutil.h
  632. main_h=main.h
  633. opdef_h=opdef.h
  634. ostack_h=ostack.h
  635. overlay_h=overlay.h
  636. packed_h=packed.h
  637. save_h=save.h
  638. scanchar_h=scanchar.h
  639. sbits_h=sbits.h
  640. shc_h=shc.h
  641. state_h=state.h
  642. store_h=store.h
  643. stream_h=stream.h
  644. # Nested include files
  645. bfont_h=bfont.h $(font_h)
  646. ghost_h=ghost.h $(gx_h) $(iref_h)
  647. oper_h=oper.h $(gsutil_h) $(iutil_h) $(opdef_h) $(ostack_h)
  648. scf_h=scf.h $(shc_h)
  649. sdct_h=sdct.h $(shc_h)
  650. # Include files for optional features
  651. bnum_h=bnum.h
  652. bseq_h=bseq.h
  653. btoken_h=btoken.h
  654.  
  655. comp1_h=comp1.h $(ghost_h) $(oper_h) $(gserrors_h) $(gxfixed_h) $(gxop1_h)
  656.  
  657. gdevprn_h=gdevprn.h $(memory__h) $(string__h) $(gx_h) \
  658.   $(gserrors_h) $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h) $(gxclist_h)
  659.  
  660. ###### Utilities
  661.  
  662. GH=$(AK) $(ghost_h)
  663.  
  664. ialloc.$(OBJ): ialloc.c $(AK) $(gx_h) $(alloc_h) $(astate_h) $(ivmspace_h)
  665.  
  666. iccfont.$(OBJ): iccfont.c $(GH) gconfigf.h \
  667.   $(ghost_h) $(alloc_h) $(ccfont_h) $(dict_h) $(dstack_h) $(errors_h) \
  668.   $(font_h) $(iutil_h) $(iname_h) $(oper_h) $(save_h) $(store_h)
  669.  
  670. idebug.$(OBJ): idebug.c $(GH) \
  671.   $(iutil_h) $(dict_h) $(iname_h) $(ostack_h) $(opdef_h) $(packed_h) $(store_h)
  672.  
  673. idict.$(OBJ): idict.c $(GH) \
  674.   $(alloc_h) $(errors_h) $(ivmspace_h) $(iname_h) $(packed_h) \
  675.   $(save_h) $(store_h) $(iutil_h) $(dict_h) $(dstack_h)
  676.  
  677. idparam.$(OBJ): idparam.c $(GH) \
  678.   $(gsmatrix_h) $(dict_h) $(dparam_h) $(errors_h) $(iutil_h)
  679.  
  680. iinit.$(OBJ): iinit.c $(GH) $(gconfig_h) \
  681.   $(alloc_h) $(dict_h) $(dstack_h) $(errors_h) $(ilevel_h) $(iname_h) $(oper_h) $(store_h)
  682.  
  683. iname.$(OBJ): iname.c $(GH) $(alloc_h) $(errors_h) $(ivmspace_h) $(iname_h) $(store_h)
  684.  
  685. isave.$(OBJ): isave.c $(GH) $(alloc_h) $(astate_h) $(errors_h) $(iname_h) $(packed_h) $(save_h) $(store_h)
  686.  
  687. iscan.$(OBJ): iscan.c $(GH) $(ctype__h) \
  688.   $(alloc_h) $(dict_h) $(dstack_h) $(errors_h) \
  689.   $(ilevel_h) $(iutil_h) $(iscan_h) $(ivmspace_h) \
  690.   $(iname_h) $(ostack_h) $(packed_h) $(store_h) $(stream_h) $(scanchar_h)
  691.  
  692. iutil.$(OBJ): iutil.c $(GH) \
  693.   $(errors_h) $(alloc_h) $(dict_h) $(iutil_h) $(ivmspace_h) \
  694.   $(iname_h) $(ostack_h) $(opdef_h) $(packed_h) $(store_h) \
  695.   $(gsmatrix_h) $(gxdevice_h) $(gzcolor_h)
  696.  
  697. sfilter.$(OBJ): sfilter.c $(AK) $(stdio__h) \
  698.   $(scanchar_h) $(stream_h) $(gscrypt1_h)
  699.  
  700. stream.$(OBJ): stream.c $(AK) $(stdio__h) $(memory__h) \
  701.   $(gpcheck_h) $(scanchar_h) $(stream_h)
  702.  
  703. ###### Operators
  704.  
  705. OP=$(GH) $(errors_h) $(oper_h)
  706.  
  707. ### Non-graphics operators
  708.  
  709. zarith.$(OBJ): zarith.c $(OP) $(store_h)
  710.  
  711. zarray.$(OBJ): zarray.c $(OP) $(alloc_h) $(packed_h) $(store_h)
  712.  
  713. zcontrol.$(OBJ): zcontrol.c $(OP) $(estack_h) $(iutil_h) $(store_h)
  714.  
  715. zdict.$(OBJ): zdict.c $(OP) $(dict_h) $(dstack_h) $(iname_h) $(store_h)
  716.  
  717. zfile.$(OBJ): zfile.c $(OP) $(gp_h) \
  718.   $(alloc_h) $(estack_h) $(filedev_h) $(files_h) $(ilevel_h) $(iutil_h) \
  719.   $(save_h) $(stream_h) $(store_h)
  720.  
  721. zfiledev.$(OBJ): zfiledev.c $(OP) $(string__h) $(gp_h) $(gconfig_h) \
  722.   $(filedev_h) $(files_h) $(stream_h)
  723.  
  724. zfileio.$(OBJ): zfileio.c $(OP) $(gp_h) \
  725.   $(estack_h) $(files_h) $(iscan_h) $(store_h) $(stream_h) \
  726.   $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h)
  727.  
  728. zfilter.$(OBJ): zfilter.c $(OP) $(alloc_h) $(stream_h)
  729.  
  730. zgeneric.$(OBJ): zgeneric.c $(OP) \
  731.   $(dict_h) $(estack_h) $(ivmspace_h) $(iname_h) $(packed_h) $(store_h)
  732.  
  733. zmath.$(OBJ): zmath.c $(OP) $(store_h)
  734.  
  735. zmisc.$(OBJ): zmisc.c $(OP) $(gp_h) $(errno__h) $(memory__h) $(string__h) \
  736.   $(alloc_h) $(dict_h) $(dstack_h) $(iname_h) $(ivmspace_h) $(packed_h) $(store_h) \
  737.   $(gscrypt1_h)
  738.  
  739. zpacked.$(OBJ): zpacked.c $(OP) \
  740.   $(alloc_h) $(dict_h) $(ivmspace_h) $(iname_h) $(packed_h) $(save_h) $(store_h)
  741.  
  742. zprops.$(OBJ): zprops.c $(OP) \
  743.   $(alloc_h) $(dict_h) $(iname_h) $(state_h) $(store_h) \
  744.   $(gsprops_h) $(gsmatrix_h) $(gxdevice_h) $(gsstate_h)
  745.  
  746. zrelbit.$(OBJ): zrelbit.c $(OP) $(store_h) $(dict_h)
  747.  
  748. zstack.$(OBJ): zstack.c $(OP) $(store_h)
  749.  
  750. zstring.$(OBJ): zstring.c $(OP) \
  751.   $(alloc_h) $(iscan_h) $(iutil_h) $(iname_h) $(store_h) $(stream_h)
  752.  
  753. ztype.$(OBJ): ztype.c $(OP) \
  754.   $(dict_h) $(iscan_h) $(iutil_h) $(iname_h) $(stream_h) $(store_h)
  755.  
  756. zvmem.$(OBJ): zvmem.c $(OP) $(alloc_h) $(dict_h) $(dstack_h) $(estack_h) $(save_h) $(state_h) $(store_h) \
  757.   $(gsmatrix_h) $(gsstate_h)
  758.  
  759. ###### Graphics operators
  760.  
  761. zchar.$(OBJ): zchar.c $(OP) $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) \
  762.   $(gschar_h) $(gxtype1_h) $(gxdevice_h) $(gxfont_h) $(gzpath_h) $(gzstate_h) \
  763.   $(alloc_h) $(dict_h) $(font_h) $(estack_h) $(ilevel_h) $(iname_h) $(state_h) $(store_h)
  764.  
  765. zcolor.$(OBJ): zcolor.c $(OP) $(alloc_h) $(estack_h) $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gxdevice_h) $(gzcolor_h) $(iutil_h) $(state_h) $(store_h)
  766.  
  767. zdevice.$(OBJ): zdevice.c $(OP) $(alloc_h) $(state_h) $(gsmatrix_h) $(gsstate_h) $(gxdevice_h) $(store_h)
  768.  
  769. zfont.$(OBJ): zfont.c $(OP) \
  770.   $(gsmatrix_h) $(gxdevice_h) $(gxfont_h) $(gxfdir_h) $(gxcache_h) \
  771.   $(alloc_h) $(bfont_h) $(dict_h) $(iname_h) $(packed_h) $(save_h) $(state_h) $(store_h)
  772.  
  773. zfont1.$(OBJ): zfont1.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gschar_h) $(gxfixed_h) $(gxfont_h) \
  774.   $(bfont_h) $(dict_h) $(dparam_h) $(iname_h) $(store_h)
  775.  
  776. zfont2.$(OBJ): zfont2.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gschar_h) $(gxfixed_h) $(gxfont_h) \
  777.   $(alloc_h) $(bfont_h) $(dict_h) $(dparam_h) $(ilevel_h) $(iname_h) \
  778.   $(packed_h) $(save_h) $(store_h)
  779.  
  780. zgstate.$(OBJ): zgstate.c $(OP) $(alloc_h) $(gsmatrix_h) $(gsstate_h) $(state_h) $(store_h)
  781.  
  782. zht.$(OBJ): zht.c $(OP) $(alloc_h) $(estack_h) $(gsmatrix_h) $(gsstate_h) $(state_h) $(store_h)
  783.  
  784. zmatrix.$(OBJ): zmatrix.c $(OP) $(gsmatrix_h) $(state_h) $(gscoord_h) $(store_h)
  785.  
  786. zpaint.$(OBJ): zpaint.c $(OP) \
  787.   $(alloc_h) $(estack_h) $(ilevel_h) $(state_h) $(store_h) $(stream_h) \
  788.   $(gsimage_h) $(gsmatrix_h) $(gspaint_h)
  789.  
  790. zpath.$(OBJ): zpath.c $(OP) $(gsmatrix_h) $(gspath_h) $(state_h) $(store_h)
  791.  
  792. zpath2.$(OBJ): zpath2.c $(OP) $(alloc_h) $(estack_h) $(gspath_h) $(state_h) $(store_h)
  793.  
  794. ###### Linking
  795.  
  796. INT=ialloc.$(OBJ) idebug.$(OBJ) idict.$(OBJ) idparam.$(OBJ) \
  797.  iinit.$(OBJ) iname.$(OBJ) \
  798.  interp.$(OBJ) isave.$(OBJ) iscan.$(OBJ) iutil.$(OBJ) \
  799.  sfilter.$(OBJ) stream.$(OBJ) \
  800.  zarith.$(OBJ) zarray.$(OBJ) zcontrol.$(OBJ) zdict.$(OBJ) \
  801.  zfile.$(OBJ) zfiledev.$(OBJ) zfileio.$(OBJ) zfilter.$(OBJ) zgeneric.$(OBJ) \
  802.  zmath.$(OBJ) zmisc.$(OBJ) zpacked.$(OBJ) zprops.$(OBJ) zrelbit.$(OBJ) \
  803.  zstack.$(OBJ) zstring.$(OBJ) ztype.$(OBJ) zvmem.$(OBJ) \
  804.  zchar.$(OBJ) zcolor.$(OBJ) zfont.$(OBJ) zfont1.$(OBJ) zfont2.$(OBJ) \
  805.  zdevice.$(OBJ) zgstate.$(OBJ) zht.$(OBJ) zmatrix.$(OBJ) \
  806.  zpaint.$(OBJ) zpath.$(OBJ) zpath2.$(OBJ)
  807.  
  808. # -------------------------- Optional features ---------------------------- #
  809.  
  810. ### Additions common to Display PostScript and Level 2
  811.  
  812. # We have to split up the module list because of limitations
  813. # on the number of arguments to a DOS batch file.
  814. dpsand2a_=gsdps1.$(OBJ) ibnum.$(OBJ) iscan2.$(OBJ)
  815. dpsand2b_=zbseq.$(OBJ) zchar2.$(OBJ) zdps1.$(OBJ) zupath.$(OBJ) zvmem2.$(OBJ)
  816. dpsand2_=$(dpsand2a_) $(dpsand2b_)
  817. dpsand2.dev: $(dpsand2_)
  818.     $(SHP)gssetmod dpsand2 $(dpsand2a_)
  819.     $(SHP)gsaddmod dpsand2 -obj $(dpsand2b_)
  820.     $(SHP)gsaddmod dpsand2 -oper2 zbseq zchar2 zdps1 zupath zvmem2
  821.     $(SHP)gsaddmod dpsand2 -ps gs_dps1
  822.  
  823. gsdps1.$(OBJ): gsdps1.c $(GXERR) $(gxfixed_h) $(gxmatrix_h) $(gzpath_h) $(gzstate_h)
  824.  
  825. ibnum.$(OBJ): ibnum.c $(GH) $(errors_h) $(stream_h) $(bnum_h) $(btoken_h)
  826.  
  827. iscan2.$(OBJ): iscan2.c $(GH) $(errors_h) \
  828.   $(alloc_h) $(dict_h) $(dstack_h) $(iscan_h) $(iutil_h) $(ivmspace_h) \
  829.   $(iname_h) $(ostack_h) $(save_h) $(store_h) $(stream_h) \
  830.   $(bseq_h) $(btoken_h) $(bnum_h)
  831.  
  832. zbseq.$(OBJ): zbseq.c $(OP) $(save_h) $(store_h) $(stream_h) $(files_h) $(iname_h) $(bnum_h) $(btoken_h) $(bseq_h)
  833.  
  834. zchar2.$(OBJ): zchar2.c $(OP) $(gschar_h) $(gsmatrix_h) $(gxfixed_h) $(gxfont_h) \
  835.   $(alloc_h) $(estack_h) $(font_h) $(iname_h) $(state_h) $(store_h) $(stream_h) $(bnum_h)
  836.  
  837. zdps1.$(OBJ): zdps1.c $(OP) $(gsmatrix_h) $(gspath_h) $(gsstate_h) \
  838.   $(alloc_h) $(ivmspace_h) $(state_h) $(store_h) $(stream_h) $(bnum_h)
  839.  
  840. zupath.$(OBJ): zupath.c $(OP) \
  841.   $(dict_h) $(dstack_h) $(iutil_h) $(state_h) $(store_h) $(stream_h) $(bnum_h) \
  842.   $(gscoord_h) $(gsmatrix_h) $(gspaint_h) $(gspath_h) $(gsstate_h) \
  843.   $(gxfixed_h) $(gxdevice_h) $(gxpath_h)
  844.  
  845. zvmem2.$(OBJ): zvmem2.c $(OP) \
  846.   $(ivmspace_h) $(store_h)
  847.  
  848. ### Display PostScript
  849. # We should include zcontext, but it isn't in good enough shape yet:
  850. #    $(SHP)gsaddmod dps -oper2 zcontext
  851.  
  852. dps_=
  853. dps.dev: dpsand2.dev $(dps_)
  854.     $(SHP)gssetmod dps $(dps_)
  855.     $(SHP)gsaddmod dps -include dpsand2
  856.  
  857. zcontext.$(OBJ): zcontext.c $(OP) \
  858.   $(alloc_h) $(dict_h) $(dstack_h) $(estack_h) $(state_h) $(store_h)
  859.  
  860. ### Composite font support
  861.  
  862. gschar0.$(OBJ): gschar0.c $(GXERR) \
  863.   $(gxfixed_h) $(gxmatrix_h) $(gzdevice_h) $(gxdevmem_h) $(gxfont_h) $(gxchar_h) $(gzstate_h)
  864.  
  865. zfont0.$(OBJ): zfont0.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gxfont_h) \
  866.   $(alloc_h) $(bfont_h) $(dict_h) $(iname_h) $(state_h) $(store_h)
  867.  
  868. compfont_=zchar2.$(OBJ) zfont0.$(OBJ) gschar0.$(OBJ)
  869. compfont.dev: $(compfont_)
  870.     $(SHP)gssetmod compfont $(compfont_)
  871.     $(SHP)gsaddmod compfont -oper zfont0 zchar2
  872.     $(SHP)gsaddmod compfont -ps gs_type0
  873.  
  874. ### Level 2 additions
  875.  
  876. # We have to split up the module list because of limitations
  877. # on the number of arguments to a DOS batch file.
  878. level2a_=gscie.$(OBJ) gscolor2.$(OBJ) zcie.$(OBJ) zcolor2.$(OBJ)
  879. level2b_=zcspace2.$(OBJ) zht2.$(OBJ) zimage2.$(OBJ) zmisc2.$(OBJ)
  880. level2_=$(level2a_) $(level2b_)
  881. level2.dev: compfont.dev dpsand2.dev filter.dev $(level2_)
  882.     $(SHP)gssetmod level2 $(level2a_)
  883.     $(SHP)gsaddmod level2 -obj $(level2b_)
  884.     $(SHP)gsaddmod level2 -include compfont dpsand2 filter
  885.     $(SHP)gsaddmod level2 -oper zmisc2_level
  886.     $(SHP)gsaddmod level2 -oper2 zcie zcolor2 zcspace2
  887.     $(SHP)gsaddmod level2 -oper2 zht2 zimage2 zmisc2
  888.     $(SHP)gsaddmod level2 -ps gs_lev2
  889.  
  890. gscie.$(OBJ): gscie.c $(GXERR) \
  891.   $(gscspace_h) $(gscie_h) $(gscolor2_h) \
  892.   $(gxarith_h) $(gxcolor_h) $(gxdevice_h) $(gxrefct_h) \
  893.   $(gzcolor_h) $(gzstate_h)
  894.  
  895. gscolor2.$(OBJ): gscolor2.c $(GXERR) \
  896.   $(gscie_h) $(gscolor2_h) $(gscspace_h) \
  897.   $(gxcolor_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) $(gxrefct_h) \
  898.   $(gzcolor_h) $(gzstate_h)
  899.  
  900. zcie.$(OBJ): zcie.c $(OP) \
  901.   $(gscspace_h) $(gscolor2_h) $(gscie_h) $(gxcolor_h) $(gxrefct_h) \
  902.   $(alloc_h) $(dict_h) $(dparam_h) $(estack_h) $(save_h) $(state_h) $(store_h)
  903.  
  904. zcolor2.$(OBJ): zcolor2.c $(OP) \
  905.   $(gscolor_h) $(gxcolor_h) $(gscolor2_h) $(gscspace_h) $(gsmatrix_h) \
  906.   $(dict_h) $(dparam_h) $(iname_h) $(state_h) $(store_h)
  907.  
  908. zcspace2.$(OBJ): zcspace2.c $(OP) \
  909.   $(gscolor_h) $(gxcolor_h) $(gscolor2_h) $(gscspace_h) $(gsmatrix_h) \
  910.   $(dict_h) $(dparam_h) $(estack_h) $(iname_h) $(state_h) $(store_h)
  911.  
  912. zht2.$(OBJ): zht2.c $(OP) \
  913.   $(dict_h) $(dparam_h) $(iname_h) $(state_h) $(store_h)
  914.  
  915. zimage2.$(OBJ): zimage2.c $(OP) \
  916.   $(gscolor_h) $(gscolor2_h) $(gscspace_h) $(gsmatrix_h) $(gxcolor_h) \
  917.   $(dict_h) $(dparam_h) $(ilevel_h) $(state_h)
  918.  
  919. zmisc2.$(OBJ): zmisc2.c $(OP) \
  920.   $(gsfont_h) \
  921.   $(dict_h) $(dparam_h) $(dstack_h) $(estack_h) $(ilevel_h) $(iname_h) $(store_h)
  922.  
  923. ### Filters other than the ones in sfilter.c
  924.  
  925. sbits.$(OBJ): sbits.c $(AK) $(stdio__h) $(sbits_h) $(stream_h)
  926.  
  927. scftab.$(OBJ): scftab.c $(AK) $(std_h) $(scf_h)
  928.  
  929. scfdtab.$(OBJ): scfdtab.c $(AK) $(std_h) $(scf_h)
  930.  
  931. scfd.$(OBJ): scfd.c $(AK) $(stdio__h) $(gdebug_h)\
  932.   $(sbits_h) $(scf_h) $(stream_h)
  933.  
  934. scfe.$(OBJ): scfe.c $(AK) $(stdio__h) $(gdebug_h)\
  935.   $(sbits_h) $(scf_h) $(stream_h)
  936.  
  937. sdctd.$(OBJ): sdctd.c $(AK) $(stdio__h) $(gdebug_h) $(stream_h)
  938.  
  939. sdcte.$(OBJ): sdcte.c $(AK) $(stdio__h) $(gdebug_h) $(stream_h)
  940.  
  941. sfilter2.$(OBJ): sfilter2.c $(AK) $(stdio__h) $(scanchar_h) $(stream_h)
  942.  
  943. slzwd.$(OBJ): slzwd.c $(AK) $(stdio__h) $(gdebug_h) $(stream_h)
  944.  
  945. slzwe.$(OBJ): slzwe.c $(AK) $(stdio__h) $(gdebug_h) $(stream_h)
  946.  
  947. zfilter2.$(OBJ): zfilter2.c $(OP) $(alloc_h) $(dict_h) $(dparam_h) $(sdct_h) $(stream_h)
  948.  
  949. # Because of size limits on the DOS command line,
  950. # we have to break this up into two parts.
  951. filter_1=zfilter2.$(OBJ) sfilter2.$(OBJ) sbits.$(OBJ)
  952. filter_2=scfdtab.$(OBJ) scftab.$(OBJ) scfd.$(OBJ) scfe.$(OBJ) 
  953. filter_3=sdctd.$(OBJ) sdcte.$(OBJ) slzwd.$(OBJ) slzwe.$(OBJ)
  954. filter.dev: $(filter_1) $(filter_2) $(filter_3)
  955.     $(SHP)gssetmod filter $(filter_1)
  956.     $(SHP)gsaddmod filter -obj $(filter_2)
  957.     $(SHP)gsaddmod filter -obj $(filter_3)
  958.     $(SHP)gsaddmod filter -oper zfilter2
  959.  
  960. ### Precompiled fonts.  See fonts.doc for more information.
  961.  
  962. CCFONT=$(OP) $(ccfont_h)
  963.  
  964. # List the fonts we are going to compile.
  965. # Because of intrinsic limitations in `make', we have to list
  966. # the object file names and the font names separately.
  967. ccfonts1_=uglyr.$(OBJ)
  968. ccfonts1=uglyr
  969.  
  970. ccfonts.dev: $(MAKEFILE) gs.mak iccfont.$(OBJ) \
  971.   $(ccfonts1_) $(ccfonts2_) $(ccfonts3_) $(ccfonts4_) $(ccfonts5_)
  972.     $(SHP)gssetmod ccfonts iccfont.$(OBJ)
  973.     $(SHP)gsaddmod ccfonts -obj $(ccfonts1_)
  974.     $(SHP)gsaddmod ccfonts -obj $(ccfonts2_)
  975.     $(SHP)gsaddmod ccfonts -obj $(ccfonts3_)
  976.     $(SHP)gsaddmod ccfonts -obj $(ccfonts4_)
  977.     $(SHP)gsaddmod ccfonts -obj $(ccfonts5_)
  978.     $(SHP)gsaddmod ccfonts -oper ccfonts
  979.  
  980. gconfigf.h: $(MAKEFILE) gs.mak genconf$(XE)
  981.     $(SHP)gssetmod ccfonts_
  982.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts1)
  983.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts2)
  984.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts3)
  985.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts4)
  986.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts5)
  987.     $(EXP)genconf ccfonts_.dev -f gconfigf.h
  988.  
  989. uglyr.$(OBJ): uglyr.c $(CCFONT)
  990.     $(CCCF) uglyr.c
  991.  
  992. ncrr.$(OBJ): ncrr.c $(CCFONT)
  993.     $(CCCF) ncrr.c
  994.  
  995. pagk.$(OBJ): pagk.c $(CCFONT)
  996.     $(CCCF) pagk.c
  997.  
  998. psyr.$(OBJ): psyr.c $(CCFONT)
  999.     $(CCCF) psyr.c
  1000.  
  1001. ptmr.$(OBJ): ptmr.c $(CCFONT)
  1002.     $(CCCF) ptmr.c
  1003.  
  1004. pzdr.$(OBJ): pzdr.c $(CCFONT)
  1005.     $(CCCF) pzdr.c
  1006.  
  1007. # ----------------------------- Main program ------------------------------ #
  1008.  
  1009. # Interpreter main program
  1010.  
  1011. gs.$(OBJ): gs.c $(GH) $(ctype__h) \
  1012.   $(gxdevice_h) $(gxdevmem_h) \
  1013.   $(alloc_h) $(errors_h) $(estack_h) $(files_h) $(iscan_h) $(main_h) $(ostack_h) $(store_h) $(stream_h)
  1014.  
  1015. gsmain.$(OBJ): gsmain.c $(GH) \
  1016.   $(gp_h) $(gsmatrix_h) $(gxdevice_h) $(gserrors_h) \
  1017.   $(estack_h) $(files_h) $(iscan_h) $(main_h) $(ostack_h) $(store_h)
  1018.  
  1019. interp.$(OBJ): interp.c $(GH) \
  1020.   $(errors_h) $(estack_h) $(iname_h) $(dict_h) $(dstack_h) $(iscan_h) $(oper_h) $(ostack_h) $(packed_h) $(save_h) $(store_h) $(stream_h)
  1021.     $(CCINT) interp.c
  1022. #    Copyright (C) 1989, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  1023. #
  1024. # This file is part of Ghostscript.
  1025. #
  1026. # Ghostscript is distributed in the hope that it will be useful, but
  1027. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  1028. # to anyone for the consequences of using it or for whether it serves any
  1029. # particular purpose or works at all, unless he says so in writing.  Refer
  1030. # to the Ghostscript General Public License for full details.
  1031. #
  1032. # Everyone is granted permission to copy, modify and redistribute
  1033. # Ghostscript, but only under the conditions described in the Ghostscript
  1034. # General Public License.  A copy of this license is supposed to have been
  1035. # given to you along with Ghostscript so you can know your rights and
  1036. # responsibilities.  It should be in a file named COPYING.  Among other
  1037. # things, the copyright notice and this notice must be preserved on all
  1038. # copies.
  1039.  
  1040. # makefile for Ghostscript device drivers.
  1041.  
  1042. # -------------------------------- Catalog ------------------------------- #
  1043.  
  1044. # It is possible to build Ghostscript with an arbitrary collection of
  1045. # device drivers, although some drivers are supported only on a subset
  1046. # of the target platforms.  The currently available drivers are:
  1047.  
  1048. # Displays:
  1049. #   MS-DOS EGA and VGA:
  1050. #    ega    EGA (640x350, 16-color)
  1051. #    vga    VGA (640x480, 16-color)
  1052. #   MS-DOS SuperVGA:
  1053. # +    atiw    ATI Wonder SuperVGA, 256-color modes
  1054. # +     atiw16  ATI Wonder SuperVGA in 800x600, 16-color mode
  1055. #    s3vga    SuperVGA with S3 86C911 chip (e.g., Diamond Stealth board)
  1056. #    tseng    SuperVGA using Tseng Labs ET3000/4000 chips, 256-color modes
  1057. #    tseng16  Tseng Labs SuperVGA in 800x600, 16-color mode (256K memory)
  1058. # +    tvga    Trident SuperVGA, 256-color modes
  1059. # +    tvga16    Trident SuperVGA in 800x600, 16-color mode (256K memory)
  1060. #   ****** NOTE: The vesa device does not work with the Watcom (32-bit MS-DOS)
  1061. #   ****** compiler or executable.
  1062. #    vesa    SuperVGA with VESA standard API driver
  1063. #   MS-DOS other:
  1064. #    bgi    Borland Graphics Interface (CGA)  [MS-DOS only]
  1065. # *    herc    Hercules Graphics display   [MS-DOS only]
  1066. #    mswin    Microsoft Windows 3.0, 3.1  [MS Windows only]
  1067. #    mswinprn  Microsoft Windows 3.0, 3.1 printer  [MS Windows only]
  1068. # *    pe    Private Eye display
  1069. #   Unix and VMS:
  1070. #   ****** NOTE: For direct frame buffer addressing under SCO Unix or Xenix,
  1071. #   ****** edit the definition of EGAVGA below.
  1072. # *    att3b1    AT&T 3b1/Unixpc monochrome display   [3b1 only]
  1073. # *    sonyfb    Sony Microsystems monochrome display   [Sony only]
  1074. # *    sunview  SunView window system   [SunOS only]
  1075. #    x11    X Windows version 11, release >=3   [Unix and VMS only]
  1076. # Printers:
  1077. # *    appledmp  Apple Dot Matrix Printer (should also work with Imagewriter)
  1078. #    bj10e    Canon BubbleJet BJ10e
  1079. # *    bj200    Canon BubbleJet BJ200
  1080. # *    cdeskjet  H-P DeskJet 500C with 1 bit/pixel color
  1081. # *    cdjcolor  H-P DeskJet 500C with 24 bit/pixel color and
  1082. #        high-quality color (Floyd-Steinberg) dithering
  1083. # *    cdjmono  H-P DeskJet 500C printing black only
  1084. # *    cdj500    H-P DeskJet 500C (same as cdjcolor)
  1085. # *    cdj550    H-P DeskJet 550C
  1086. # *    declj250  alternate DEC LJ250 driver
  1087. # +    deskjet  H-P DeskJet and DeskJet Plus
  1088. # *    dfaxhigh  DigiBoard, Inc.'s DigiFAX software format (high resolution)
  1089. # *    dfaxlow  DigiFAX low (normal) resolution
  1090. #    djet500  H-P DeskJet 500
  1091. # *    djet500c  H-P DeskJet 500C
  1092. #    epson    Epson-compatible dot matrix printers (9- or 24-pin)
  1093. # +    eps9high  Epson-compatible 9-pin, interleaved lines
  1094. #        (triple resolution)
  1095. # *    epsonc    Epson LQ-2550 and Fujitsu 3400/2400/1200 color printers
  1096. # *    escp2    Epson ESC/P 2 language printers, including Stylus 800
  1097. # +     ibmpro  IBM 9-pin Proprinter
  1098. # *    jetp3852  IBM Jetprinter ink-jet color printer (Model #3852)
  1099. # +    laserjet  H-P LaserJet
  1100. # *    la50    DEC LA50 printer
  1101. # *    la75    DEC LA75 printer
  1102. # *    lbp8    Canon LBP-8II laser printer
  1103. # *    ln03    DEC LN03 printer
  1104. # *    lj250    DEC LJ250 Companion color printer
  1105. # +    ljet2p    H-P LaserJet IId/IIp/III* with TIFF compression
  1106. # +    ljet3    H-P LaserJet III* with Delta Row compression
  1107. # +    ljetplus  H-P LaserJet Plus
  1108. # *    m8510    C.Itoh M8510 printer
  1109. # *    necp6    NEC P6/P6+/P60 printers at 360 x 360 DPI resolution
  1110. # *    nwp533  Sony Microsystems NWP533 laser printer   [Sony only]
  1111. # *    oki182    Okidata MicroLine 182
  1112. #    paintjet  H-P PaintJet color printer
  1113. # *    pj    alternate PaintJet XL driver 
  1114. # *    pjxl    H-P PaintJet XL color printer
  1115. # *    pjxl300  H-P PaintJet XL300 color printer
  1116. # *    r4081    Ricoh 4081 laser printer
  1117. # *    sparc    SPARCprinter
  1118. # *    t4693d2  Tektronix 4693d color printer, 2 bits per R/G/B component
  1119. # *    t4693d4  Tektronix 4693d color printer, 4 bits per R/G/B component
  1120. # *    t4693d8  Tektronix 4693d color printer, 8 bits per R/G/B component
  1121. # *    tek4696  Tektronix 4695/4696 inkjet plotter
  1122. # *    trufax    TruFax facsimile driver  [Unix only]
  1123. # File formats and others:
  1124. #    bit    A plain "bit bucket" device
  1125. #    bmpmono    Monochrome MS Windows .BMP file format
  1126. #    bmp16    4-bit (EGA/VGA) .BMP file format
  1127. #    bmp256    8-bit (256-color) .BMP file format
  1128. #    bmp16m    24-bit .BMP file format
  1129. #    gifmono    Monochrome GIF file format
  1130. #    gif8    8-bit color GIF file format
  1131. #    pcxmono    Monochrome PCX file format
  1132. #    pcx16    Older color PCX file format (EGA/VGA, 16-color)
  1133. #    pcx256    Newer color PCX file format (256-color)
  1134. #    pbm    Portable Bitmap (plain format)
  1135. #    pbmraw    Portable Bitmap (raw format)
  1136. #    pgm    Portable Graymap (plain format)
  1137. #    pgmraw    Portable Graymap (raw format)
  1138. #    ppm    Portable Pixmap (plain format)
  1139. #    ppmraw    Portable Pixmap (raw format)
  1140. # *    tiffg3    TIFF/F (G3 fax)
  1141.  
  1142. # User-contributed drivers marked with * require hardware or software
  1143. # that is not available to Aladdin Enterprises.  Please contact the
  1144. # original contributors, not Aladdin Enterprises, if you have questions.
  1145. # Contact information appears in the driver entry below.
  1146. #
  1147. # Drivers marked with a + are maintained by Aladdin Enterprises with
  1148. # the assistance of users, since Aladdin Enterprises doesn't have access to
  1149. # the hardware for these either.
  1150.  
  1151. # If you add drivers, it would be nice if you kept each list
  1152. # in alphabetical order.
  1153.  
  1154. # Each platform-specific makefile contains a line of the form
  1155. #    DEVICE_DEVS=<dev1>.dev ... <devn>.dev
  1156. # where dev1 ... devn are the devices to be included in the build.
  1157. # You may edit this line to select any desired set of devices.
  1158. # dev1 will be used as the default device (unless overridden from
  1159. # the command line with -sDEVICE=xxx, of course.)  If you can't fit all the
  1160. # devices on a single line, you may add lines defining
  1161. #    DEVICE_DEVS2=<dev21>.dev ... <dev2n>.dev
  1162. #    DEVICE_DEVS3=<dev31>.dev ... <dev3n>.dev
  1163. # etc. up to DEVICE_DEVS9.
  1164. # Don't use continuation lines, since this may break the MS-DOS command
  1165. # processor.
  1166.  
  1167. # ---------------------------- End of catalog ---------------------------- #
  1168.  
  1169. # If you want to add a new device driver, the examples below should be
  1170. # enough of a guide to the correct form for the makefile rules.
  1171.  
  1172. # All device drivers depend on the following:
  1173. GDEV=$(AK) echogs$(XE) $(gserrors_h) $(gx_h) $(gxdevice_h)
  1174.  
  1175. # Define the header files for device drivers.  Every header file used by
  1176. # more than one device driver must be listed here.
  1177. gdevpccm_h=gdevpccm.h
  1178. gdevpcfb_h=gdevpcfb.h $(dos__h)
  1179. gdevpcl_h=gdevpcl.h
  1180. gdevsvga_h=gdevsvga.h
  1181. gdevx_h=gdevx.h
  1182.  
  1183. ###### ------------------- MS-DOS display devices ------------------- ######
  1184.  
  1185. # There are really only three drivers: an EGA/VGA driver (4 bit-planes,
  1186. # plane-addressed), a SuperVGA driver (8 bit-planes, byte addressed),
  1187. # and a special driver for the S3 chip.
  1188. # To make A4 paper the default, change the compilation line from
  1189. #    $(CCD) ...
  1190. # to
  1191. #    $(CCD) -DA4
  1192.  
  1193. ### ----------------------- EGA and VGA displays ----------------------- ###
  1194.  
  1195. gdevegaa.$(OBJ): gdevegaa.asm
  1196.  
  1197. ETEST=ega.$(OBJ) $(ega_) gdevpcfb.$(OBJ) gdevegaa.$(OBJ)
  1198. ega.exe: $(ETEST) libc$(MM).tr
  1199.     $(COMPDIR)\tlink $(LCT) $(LO) $(LIBDIR)\c0$(MM) @ega.tr @libc$(MM).tr
  1200.  
  1201. ega.$(OBJ): ega.c $(GDEV)
  1202.     $(CCC) -v ega.c
  1203.  
  1204. # The shared MS-DOS makefile defines PCFBASM as either gdevegaa.$(OBJ)
  1205. # or an empty string.
  1206.  
  1207. # NOTE: for direct frame buffer addressing under SCO Unix or Xenix,
  1208. # change gdevevga to gdevsco in the following line.
  1209. EGAVGA=gdevevga.$(OBJ) gdevpcfb.$(OBJ) $(PCFBASM)
  1210.  
  1211. gdevevga.$(OBJ): gdevevga.c $(GDEV) $(gdevpcfb_h)
  1212.     $(CCD) gdevevga.c
  1213.  
  1214. gdevsco.$(OBJ): gdevsco.c $(GDEV) $(gdevpcfb_h)
  1215.     $(CCD) gdevsco.c
  1216.  
  1217. # Common code for MS-DOS and SCO.
  1218. gdevpcfb.$(OBJ): gdevpcfb.c $(GDEV) $(MAKEFILE) $(gdevpcfb_h)
  1219.     $(CCD) -DUSE_ASM=0$(USE_ASM) gdevpcfb.c
  1220.  
  1221. # The EGA/VGA family includes: EGA, VGA, and
  1222. # the ATI Wonder, Tseng ET3000/4000, and Trident SuperVGA in 16-color mode.
  1223.  
  1224. ega.dev: $(EGAVGA)
  1225.     $(SHP)gssetdev ega $(EGAVGA)
  1226.  
  1227. vga.dev: $(EGAVGA)
  1228.     $(SHP)gssetdev vga $(EGAVGA)
  1229.  
  1230. atiw16.dev: $(EGAVGA)
  1231.     $(SHP)gssetdev atiw16 $(EGAVGA)
  1232.  
  1233. tseng16.dev: $(EGAVGA)
  1234.     $(SHP)gssetdev tseng16 $(EGAVGA)
  1235.  
  1236. tvga16.dev: $(EGAVGA)
  1237.     $(SHP)gssetdev tvga16 $(EGAVGA)
  1238.  
  1239. ### ------------------------- SuperVGA displays ------------------------ ###
  1240.  
  1241. SVGA=gdevsvga.$(OBJ) $(PCFBASM)
  1242.  
  1243. gdevsvga.$(OBJ): gdevsvga.c $(GDEV) $(MAKEFILE) \
  1244.   $(gdevpcfb_h) $(gdevsvga_h)
  1245.     $(CCD) -DUSE_ASM=0$(USE_ASM) gdevsvga.c
  1246.  
  1247. # The SuperVGA family includes: ATI Wonder, S3, Trident, Tseng ET3000/4000,
  1248. # and VESA.
  1249.  
  1250. atiw.dev: $(SVGA)
  1251.     $(SHP)gssetdev atiw $(SVGA)
  1252.  
  1253. tseng.dev: $(SVGA)
  1254.     $(SHP)gssetdev tseng $(SVGA)
  1255.  
  1256. tvga.dev: $(SVGA)
  1257.     $(SHP)gssetdev tvga $(SVGA)
  1258.  
  1259. vesa.dev: $(SVGA)
  1260.     $(SHP)gssetdev vesa $(SVGA)
  1261.  
  1262. # The S3 driver doesn't share much code with the others.
  1263.  
  1264. s3vga_=$(SVGA) gdevs3ga.$(OBJ)
  1265. s3vga.dev: $(s3vga_)
  1266.     $(SHP)gssetdev s3vga $(s3vga_)
  1267.  
  1268. gdevs3ga.$(OBJ): gdevs3ga.c $(GDEV) $(MAKEFILE) $(gdevpcfb_h) $(gdevsvga_h)
  1269.     $(CCD) gdevs3ga.c
  1270.  
  1271. ### ------------ The BGI (Borland Graphics Interface) device ----------- ###
  1272.  
  1273. cgaf.$(OBJ): $(BGIDIR)\cga.bgi
  1274.     $(BGIDIR)\bgiobj /F $(BGIDIR)\cga
  1275.  
  1276. egavgaf.$(OBJ): $(BGIDIR)\egavga.bgi
  1277.     $(BGIDIR)\bgiobj /F $(BGIDIR)\egavga
  1278.  
  1279. # Include egavgaf.$(OBJ) for debugging only.
  1280. bgi_=gdevbgi.$(OBJ) cgaf.$(OBJ)
  1281. bgi.dev: $(bgi_)
  1282.     $(SHP)gssetdev bgi $(bgi_)
  1283.     $(SHP)gsaddmod bgi -lib $(LIBDIR)\graphics
  1284.  
  1285. gdevbgi.$(OBJ): gdevbgi.c $(GDEV) $(MAKEFILE) $(gxxfont_h)
  1286.     $(CCC) -DBGI_LIB=$(QQ)$(BGIDIRSTR)$(QQ) gdevbgi.c
  1287.  
  1288. ### ------------------- The Hercules Graphics display ------------------- ###
  1289.  
  1290. herc_=gdevherc.$(OBJ)
  1291. herc.dev: $(herc_)
  1292.     $(SHP)gssetdev herc $(herc_)
  1293.  
  1294. gdevherc.$(OBJ): gdevherc.c $(GDEV)
  1295.     $(CCC) gdevherc.c
  1296.  
  1297. ###### ------------------- The Private Eye display ------------------- ######
  1298. ### Note: this driver was contributed by a user:                          ###
  1299. ###   please contact narf@media-lab.media.mit.edu if you have questions.  ###
  1300.  
  1301. pe_=gdevpe.$(OBJ)
  1302. pe.dev: $(pe_)
  1303.     $(SHP)gssetdev pe $(pe_)
  1304.  
  1305. gdevpe.$(OBJ): gdevpe.c $(GDEV)
  1306.  
  1307. ###### ----------------- The MS-Windows 3.n display ------------------ ######
  1308.  
  1309. gdevmswn_h=gdevmswn.h $(GDEV) gp_mswin.h
  1310.  
  1311. # Choose one of gdevwddb or gdevwdib here.
  1312. mswin_=gdevmswn.$(OBJ) gdevmsxf.$(OBJ) gdevwdib.$(OBJ) \
  1313.   gdevemap.$(OBJ) gdevpccm.$(OBJ)
  1314. mswin.dev: $(mswin_)
  1315.     $(SHP)gssetdev mswin $(mswin_)
  1316.  
  1317. gdevmswn.$(OBJ): gdevmswn.c $(gdevmswn_h) $(gp_h) $(gpcheck_h) \
  1318.   $(gsprops_h) $(gdevpccm_h)
  1319.  
  1320. gdevmsxf.$(OBJ): gdevmsxf.c $(ctype__h) $(math__h) $(memory__h) \
  1321.   $(gdevmswn_h) $(gsutil_h) $(gxxfont_h)
  1322.  
  1323. # An implementation using a device-dependent bitmap.
  1324. gdevwddb.$(OBJ): gdevwddb.c $(gdevmswn_h)
  1325.  
  1326. # An implementation using a DIB filled by an image device.
  1327. gdevwdib.$(OBJ): gdevwdib.c $(dos__h) $(gdevmswn_h)
  1328.  
  1329. ###### ----------------- The MS-Windows 3.n printer ------------------ ######
  1330.  
  1331. mswinprn_=gdevwprn.$(OBJ) gdevmsxf.$(OBJ)
  1332. mswinprn.dev: $(mswinprn_)
  1333.     $(SHP)gssetdev mswinprn $(mswinprn_)
  1334.  
  1335. gdevwprn.$(OBJ): gdevwprn.c $(gdevmswn_h) $(gp_h) $(gpcheck_h) \
  1336.   $(gsprops_h) $(gdevpccm_h)
  1337.  
  1338. ###### ----------- The AT&T 3b1 Unixpc monochrome display ------------ ######
  1339. ### Note: this driver was contributed by a user: please contact           ###
  1340. ###       Andy Fyfe (andy@cs.caltech.edu) if you have questions.          ###
  1341.  
  1342. att3b1_=gdev3b1.$(OBJ)
  1343. att3b1.dev: $(att3b1_)
  1344.     $(SHP)gssetdev att3b1 $(att3b1_)
  1345.  
  1346. gdev3b1.$(OBJ): gdev3b1.c
  1347.  
  1348. ###### --------------- Memory-buffered printer devices --------------- ######
  1349.  
  1350. # The dependency list for printers includes devs.mak because
  1351. # you can specify -DA4 to make A4 paper the default.
  1352. # See below under, e.g., gdevdjet.c.
  1353. PDEVH=$(GDEV) $(gdevprn_h) devs.mak
  1354.  
  1355. gdevprn.$(OBJ): gdevprn.c $(PDEVH) $(gp_h) $(gsprops_h)
  1356.  
  1357. ### ------------------- The Apple DMP printer device ------------------- ###
  1358.  
  1359. appledmp_=gdevadmp.$(OBJ) gdevprn.$(OBJ)
  1360.  
  1361. appledmp.dev: $(appledmp_)
  1362.     $(SHP)gssetdev appledmp $(appledmp_)
  1363.  
  1364. ### ------------ The Canon BubbleJet BJ10e and BJ200 devices ------------ ###
  1365.  
  1366. bj10e_=gdevbj10.$(OBJ) gdevprn.$(OBJ)
  1367.  
  1368. bj10e.dev: $(bj10e_)
  1369.     $(SHP)gssetdev bj10e $(bj10e_)
  1370.  
  1371. bj200.dev: $(bj10e_)
  1372.     $(SHP)gssetdev bj200 $(bj10e_)
  1373.  
  1374. gdevbj10.$(OBJ): gdevbj10.c $(PDEVH)
  1375.  
  1376. ### -------------------------- The DigiFAX device ----------------------- ###
  1377. ###    This driver outputs images in a format suitable for use with       ###
  1378. ###    DigiBoard, Inc.'s DigiFAX software.  Use -sDEVICE=dfaxhigh for     ###
  1379. ###    high resolution output, -sDEVICE=dfaxlow for normal output.        ###
  1380. ### Note: this driver was contributed by a user: please contact           ###
  1381. ###       Rick Richardson (rick@digibd.com) if you have questions.        ###
  1382.  
  1383. digifax_=gdevdfax.$(OBJ) gdevprn.$(OBJ)
  1384. dfaxhigh.dev: $(digifax_)
  1385.     $(SHP)gssetdev dfaxhigh $(digifax_)
  1386.  
  1387. dfaxlow.dev: $(digifax_)
  1388.     $(SHP)gssetdev dfaxlow $(digifax_)
  1389.  
  1390. gdevdfax.$(OBJ): gdevdfax.c $(GDEV) $(gdevprn_h) gdevdfg3.h
  1391.  
  1392. ### ----------- The H-P DeskJet and LaserJet printer devices ----------- ###
  1393.  
  1394. ### These are essentially the same device.
  1395. ### You can make A4 paper the default: see below.
  1396. ### NOTE: printing at full resolution (300 DPI) requires a printer
  1397. ###   with at least 1.5 Mb of memory.  150 DPI only requires .5 Mb.
  1398.  
  1399. HPPCL=gdevprn.$(OBJ) gdevpcl.$(OBJ)
  1400. HPMONO=gdevdjet.$(OBJ) $(HPPCL)
  1401.  
  1402. gdevpcl.$(OBJ): gdevpcl.c $(PDEVH) $(gdevpcl_h)
  1403.  
  1404. # To make A4 paper the default, change the second line below this to
  1405. #    $(CCC) -DA4 gdevdjet.c
  1406. gdevdjet.$(OBJ): gdevdjet.c $(PDEVH) $(gdevpcl_h)
  1407.     $(CCC) gdevdjet.c
  1408.  
  1409. deskjet.dev: $(HPMONO)
  1410.     $(SHP)gssetdev deskjet $(HPMONO)
  1411.  
  1412. djet500.dev: $(HPMONO)
  1413.     $(SHP)gssetdev djet500 $(HPMONO)
  1414.  
  1415. laserjet.dev: $(HPMONO)
  1416.     $(SHP)gssetdev laserjet $(HPMONO)
  1417.  
  1418. ljetplus.dev: $(HPMONO)
  1419.     $(SHP)gssetdev ljetplus $(HPMONO)
  1420.  
  1421. ### Selecting ljet2p provides TIFF (mode 2) compression on LaserJet III,
  1422. ### IIIp, IIId, IIIsi, IId, and IIp. 
  1423.  
  1424. ljet2p.dev: $(HPMONO)
  1425.     $(SHP)gssetdev ljet2p $(HPMONO)
  1426.  
  1427. ### Selecting ljet3 provides Delta Row (mode 3) compression on LaserJet III,
  1428. ### IIIp, IIId, IIIsi.
  1429.  
  1430. ljet3.dev: $(HPMONO)
  1431.     $(SHP)gssetdev ljet3 $(HPMONO)
  1432.  
  1433. ###- The H-P DeskJet 500C/550C and PaintJet family color printer devices -###
  1434. ### Note: there are two different 500C drivers, both contributed by users.###
  1435. ###   If you have questions about the djet500c driver,                    ###
  1436. ###       please contact AKayser@et.tudelft.nl.                           ###
  1437. ###   If you have questions about the cdj* drivers,                       ###
  1438. ###       please contact g.cameron@biomed.abdn.ac.uk.                     ###
  1439.  
  1440. cdeskjet_=gdevcdj.$(OBJ) $(HPPCL)
  1441.  
  1442. cdeskjet.dev: $(cdeskjet_)
  1443.     $(SHP)gssetdev cdeskjet $(cdeskjet_)
  1444.  
  1445. cdjcolor.dev: $(cdeskjet_)
  1446.     $(SHP)gssetdev cdjcolor $(cdeskjet_)
  1447.  
  1448. cdjmono.dev: $(cdeskjet_)
  1449.     $(SHP)gssetdev cdjmono $(cdeskjet_)
  1450.  
  1451. cdj500.dev: $(cdeskjet_)
  1452.     $(SHP)gssetdev cdj500 $(cdeskjet_)
  1453.  
  1454. cdj550.dev: $(cdeskjet_)
  1455.     $(SHP)gssetdev cdj550 $(cdeskjet_)
  1456.  
  1457. declj250.dev: $(cdeskjet_)
  1458.     $(SHP)gssetdev declj250 $(cdeskjet_)
  1459.  
  1460. pj.dev: $(cdeskjet_)
  1461.     $(SHP)gssetdev pj $(cdeskjet_)
  1462.  
  1463. pjxl.dev: $(cdeskjet_)
  1464.     $(SHP)gssetdev pjxl $(cdeskjet_)
  1465.  
  1466. pjxl300.dev: $(cdeskjet_)
  1467.     $(SHP)gssetdev pjxl300 $(cdeskjet_)
  1468.  
  1469. # NB: you can also customise the build if required, using -DA4 (for A4 paper)
  1470. # and -DBitsPerPixel=<number> if you wish the default to be other than 24
  1471. # for the generic drivers (cdj500, cdj550, pjxl300, pjtest, pjxltest).
  1472. # E.g,. to make A4 paper the default, change the second line below this to
  1473. #    $(CCC) -DA4 gdevdjet.c
  1474. gdevcdj.$(OBJ): gdevcdj.c $(PDEVH) $(gdevpcl_h)
  1475.     $(CCC) gdevcdj.c
  1476.  
  1477. djet500c_=gdevdjtc.$(OBJ) $(HPPCL)
  1478. djet500c.dev: $(djet500c_)
  1479.     $(SHP)gssetdev djet500c $(djet500c_)
  1480.  
  1481. gdevdjtc.$(OBJ): gdevdjtc.c $(PDEVH) $(gdevpcl_h)
  1482.  
  1483. ### ----------------- The generic Epson printer device ----------------- ###
  1484.  
  1485. epson_=gdevepsn.$(OBJ) gdevprn.$(OBJ)
  1486.  
  1487. epson.dev: $(epson_)
  1488.     $(SHP)gssetdev epson $(epson_)
  1489.  
  1490. eps9high.dev: $(epson_)
  1491.     $(SHP)gssetdev eps9high $(epson_)
  1492.  
  1493. gdevepsn.$(OBJ): gdevepsn.c $(PDEVH)
  1494.  
  1495. ### ----------------- The IBM Proprinter printer device ---------------- ###
  1496.  
  1497. ibmpro.dev: $(epson_)
  1498.     $(SHP)gssetdev ibmpro $(epson_)
  1499.  
  1500. ### -------------- The Epson LQ-2550 color printer device -------------- ###
  1501. ### Note: this driver was contributed by users: please contact           ###
  1502. ###       Dave St. Clair (dave@exlog.com) if you have questions.         ###
  1503.  
  1504. epsonc_=gdevepsc.$(OBJ) gdevprn.$(OBJ)
  1505. epsonc.dev: $(epsonc_)
  1506.     $(SHP)gssetdev epsonc $(epsonc_)
  1507.  
  1508. gdevepsc.$(OBJ): gdevepsc.c $(PDEVH)
  1509.  
  1510. ### -------------- The Epson ESC/P 2 language printer device ----------- ###
  1511. ### Note: this driver was contributed by a user: if you have questions,  ###
  1512. ###       please contact Richard Brown (rab@tauon.ph.unimelb.edu.au).    ###
  1513.  
  1514. escp2_=gdevescp2.$(OBJ) gdevprn.$(OBJ)
  1515. escp2.dev: $(escp2_)
  1516.     $(SHP)gssetdev escp2 $(escp2_)
  1517.  
  1518. gdevescp2.$(OBJ): gdevescp2.c $(PDEVH)
  1519.  
  1520. ### ------------ The H-P PaintJet color printer device ----------------- ###
  1521. ### Note: this driver also supports the DEC LJ250 color printer, which   ###
  1522. ###       has a PaintJet-compatible mode, and the PaintJet XL.           ###
  1523. ### If you have questions about the XL, please contact Rob Reiss         ###
  1524. ###       (rob@moray.berkeley.edu).                                      ###
  1525.  
  1526. PJET=gdevpjet.$(OBJ) $(HPPCL)
  1527.  
  1528. gdevpjet.$(OBJ): gdevpjet.c $(PDEVH) $(gdevpcl_h)
  1529.  
  1530. lj250.dev: $(PJET)
  1531.     $(SHP)gssetdev lj250 $(PJET)
  1532.  
  1533. paintjet.dev: $(PJET)
  1534.     $(SHP)gssetdev paintjet $(PJET)
  1535.  
  1536. pjetxl.dev: $(PJET)
  1537.     $(SHP)gssetdev pjetxl $(PJET)
  1538.  
  1539. ### ------- The IBM 3852 JetPrinter color inkjet printer device -------- ###
  1540. ### Note: this driver was contributed by users: please contact           ###
  1541. ###       Kevin Gift (kgift@draper.com) if you have questions.           ###
  1542. ### Note that the paper size that can be addressed by the graphics mode  ###
  1543. ###   used in this driver is fixed at 7-1/2 inches wide (the printable   ###
  1544. ###   width of the jetprinter itself.)                                   ###
  1545.  
  1546. jetp3852_=gdev3852.$(OBJ) gdevprn.$(OBJ)
  1547. jetp3852.dev: $(jetp3852_)
  1548.     $(SHP)gssetdev jetp3852 $(jetp3852_)
  1549.  
  1550. gdevjetp.$(OBJ): gdevjetp.c $(PDEVH) $(gdevpcl_h)
  1551.  
  1552. ### ----------------- The Canon LBP-8II printer device ----------------- ###
  1553. ### Note: this driver was contributed by users: please contact           ###
  1554. ###       Tom Quinn (trq@prg.oxford.ac.uk) if you have questions.        ###
  1555. ### Note that the standard paper size for this driver is the European    ###
  1556. ###   A4 size, not the American 8.5" x 11" size.                         ###
  1557.  
  1558. lbp8_=gdevlbp8.$(OBJ) gdevprn.$(OBJ)
  1559. lbp8.dev: $(lbp8_)
  1560.     $(SHP)gssetdev lbp8 $(lbp8_)
  1561.  
  1562. gdevlbp8.$(OBJ): gdevlbp8.c $(PDEVH)
  1563.  
  1564. ### -------------- The DEC LN03/LA50/LA75 printer devices -------------- ###
  1565. ### Note: this driver was contributed by users: please contact           ###
  1566. ###       Ulrich Mueller (ulm@vsnhd1.cern.ch) if you have questions.     ###
  1567. ### For questions about LA50 and LA75: please contact                    ###
  1568. ###       Ian MacPhedran (macphed@dvinci.USask.CA).                     ###
  1569. ### For the LN03, you can make A4 paper the default: see below.          ###
  1570.  
  1571. ln03_=gdevln03.$(OBJ) gdevprn.$(OBJ)
  1572. ln03.dev: $(ln03_)
  1573.     $(SHP)gssetdev ln03 $(ln03_)
  1574.  
  1575. la50.dev: $(ln03_)
  1576.     $(SHP)gssetdev la50 $(ln03_)
  1577.  
  1578. la75.dev: $(ln03_)
  1579.     $(SHP)gssetdev la75 $(ln03_)
  1580.  
  1581. # To make A4 paper the default, change the second line below this to
  1582. #    $(CCC) -DA4 gdevln03.c
  1583. gdevln03.$(OBJ): gdevln03.c $(PDEVH)
  1584.     $(CCC) gdevln03.c
  1585.  
  1586. ### -------------- The C.Itoh M8510 printer device --------------------- ###
  1587. ### Note: this driver was contributed by a user: please contact Bob      ###
  1588. ###       Smith <bob@snuffy.penfield.ny.us> if you have questions.       ###
  1589.  
  1590. m8510_=gdev8510.$(OBJ) gdevprn.$(OBJ)
  1591. m8510.dev: $(m8510_)
  1592.     $(SHP)gssetdev m8510 $(m8510_)
  1593.  
  1594. gdev8510.$(OBJ): gdev8510.c $(PDEVH)
  1595.  
  1596. ### --------------------- The NEC P6 family devices -------------------- ###
  1597.  
  1598. necp6_=gdevnp6.$(OBJ) gdevprn.$(OBJ)
  1599. necp6.dev: $(necp6_)
  1600.     $(SHP)gssetdev necp6 $(necp6_)
  1601.  
  1602. gdevnp6.$(OBJ): gdevnp6.c $(PDEVH)
  1603.  
  1604. ### ----------------- The Okidata MicroLine 182 device ----------------- ###
  1605. ### Note: this driver was contributed by a user: please contact          ###
  1606. ###       Maarten Koning (smeg@bnr.ca) if you have questions.            ###
  1607.  
  1608. oki182_=gdevo182.$(OBJ) gdevprn.$(OBJ)
  1609. oki182.dev: $(oki182_)
  1610.     $(SHP)gssetdev oki182 $(oki182_)
  1611.  
  1612. gdevo182.$(OBJ): gdevo182.c $(PDEVH)
  1613.  
  1614. ### ------------- The Ricoh 4081 laser printer device ------------------ ###
  1615. ### Note: this driver was contributed by users:                          ###
  1616. ###       please contact kdw@oasis.icl.co.uk if you have questions.      ###
  1617.  
  1618. r4081_=gdev4081.$(OBJ) gdevprn.$(OBJ)
  1619. r4081.dev: $(r4081_)
  1620.     $(SHP)gssetdev r4081 $(r4081_)
  1621.  
  1622. gdev4081.$(OBJ): gdev4081.c $(PDEVH)
  1623.  
  1624. ###### ------------------------ Sony devices ------------------------ ######
  1625. ### Note: these drivers were contributed by users: please contact        ###
  1626. ###       Mike Smolenski (mike@intertech.com) if you have questions.     ###
  1627.  
  1628. ### ------------------- Sony NeWS frame buffer device ------------------ ###
  1629.  
  1630. sonyfb_=gdevsnfb.$(OBJ) gdevprn.$(OBJ)
  1631. sonyfb.dev: $(sonyfb_)
  1632.     $(SHP)gssetdev sonyfb $(sonyfb_)
  1633.  
  1634. gdevsnfb.$(OBJ): gdevsnfb.c $(PDEVH)
  1635.  
  1636. ### -------------------- Sony NWP533 printer device -------------------- ###
  1637. ### Note: this driver was contributed by a user: please contact Tero     ###
  1638. ###       Kivinen (kivinen@joker.cs.hut.fi) if you have questions.       ###
  1639.  
  1640. nwp533_=gdevn533.$(OBJ) gdevprn.$(OBJ)
  1641. nwp533.dev: $(nwp533_)
  1642.     $(SHP)gssetdev nwp533 $(nwp533_)
  1643.  
  1644. gdevn533.$(OBJ): gdevn533.c $(PDEVH)
  1645.  
  1646. ### ------------------------- The SPARCprinter ------------------------- ###
  1647. ### Note: this driver was contributed by users: please contact Martin    ###
  1648. ###       Schulte (schulte@thp.uni-koeln.de) if you have questions.      ###
  1649. ###       He would also like to hear from anyone using the driver.       ###
  1650. ### Please consult the source code for additional documentation.         ###
  1651.  
  1652. sparc_=gdevsppr.$(OBJ) gdevprn.$(OBJ)
  1653. sparc.dev: $(sparc_)
  1654.     $(SHP)gssetdev sparc $(sparc_)
  1655.  
  1656. gdevsppr.$(OBJ): gdevsppr.c $(PDEVH)
  1657.  
  1658. ###### --------------------- The SunView device --------------------- ######
  1659. ### Note: this driver is maintained by a user: if you have questions,    ###
  1660. ###       please contact Andreas Stolcke (stolcke@icsi.berkeley.edu).    ###
  1661.  
  1662. sunview_=gdevsun.$(OBJ)
  1663. sunview.dev: $(sunview_)
  1664.     $(SHP)gssetdev sunview $(sunview_)
  1665.     $(SHP)gsaddmod sunview -lib suntool sunwindow pixrect
  1666.  
  1667. gdevsun.$(OBJ): gdevsun.c $(GDEV) $(arch_h)
  1668.  
  1669. ### ----------------- Tektronix 4396d color printer -------------------- ###
  1670. ### Note: this driver was contributed by a user: please contact          ###
  1671. ###       Karl Hakimian (hakimian@haney.eecs.wsu.edu)                    ###
  1672. ###       if you have questions.                                         ###
  1673.  
  1674. t4693d_=gdev4693.$(OBJ) gdevprn.$(OBJ)
  1675. t4693d2.dev: $(t4693d_)
  1676.     $(SHP)gssetdev t4693d2 $(t4693d_)
  1677.  
  1678. t4693d4.dev: $(t4693d_)
  1679.     $(SHP)gssetdev t4693d4 $(t4693d_)
  1680.  
  1681. t4693d8.dev: $(t4693d_)
  1682.     $(SHP)gssetdev t4693d8 $(t4693d_)
  1683.  
  1684. gdev4693.$(OBJ): gdev4693.c $(GDEV)
  1685.  
  1686. ### -------------------- Tektronix ink-jet printers -------------------- ###
  1687. ### Note: this driver was contributed by a user: please contact          ###
  1688. ###       Karsten Spang (spang@nbivax.nbi.dk) if you have questions.     ###
  1689.  
  1690. tek4696_=gdevtknk.$(OBJ) gdevprn.$(OBJ)
  1691. tek4696.dev: $(tek4696_)
  1692.     $(SHP)gssetdev tek4696 $(tek4696_)
  1693.  
  1694. gdevtknk.$(OBJ): gdevtknk.c $(PDEVH)
  1695.  
  1696. ### ----------------- The TruFax facsimile device ---------------------- ###
  1697. ### Note: this driver was contributed by users: please contact           ###
  1698. ###       Neil Ostroff (nao@maestro.bellcore.com) if you have questions. ###
  1699. ### Note that the driver requires a file encode_l.o supplied by the      ###
  1700. ###   makers of the TruFax product.                                      ###
  1701.  
  1702. trufax_=gdevtrfx.$(OBJ) gdevprn.$(OBJ) encode_l.$(OBJ)
  1703. trufax.dev: $(trufax_)
  1704.     $(SHP)gssetdev trufax $(trufax_)
  1705.  
  1706. gdevtrfx.$(OBJ): gdevtrfx.c $(GDEV)
  1707.  
  1708. ###### ----------------------- The X11 device ----------------------- ######
  1709.  
  1710. # Aladdin Enterprises does not support Ghostview.  For more information
  1711. # about Ghostview, please contact Tim Theisen (ghostview@cs.wisc.edu).
  1712.  
  1713. # NOTE: Xmu and Xext are here to keep Sun's dynamic linker happy.  No
  1714. #       routines are used from either of these two libraries.  If you
  1715. #       do not have libXmu.a or libXext.a, simply remove these two lines
  1716. #       from the Makefile.
  1717. x11_=gdevx.$(OBJ) gdevxini.$(OBJ) gdevxxf.$(OBJ) gdevemap.$(OBJ)
  1718. x11.dev: $(x11_)
  1719.     $(SHP)gssetdev x11 $(x11_)
  1720.     $(SHP)gsaddmod x11 -lib Xt Xmu X11 Xext
  1721.  
  1722. # See the main makefile for the definition of XINCLUDE.
  1723. GDEVX=$(GDEV) x_.h gdevx.h $(MAKEFILE)
  1724. gdevx.$(OBJ): gdevx.c $(GDEVX) $(gsprops_h) $(gsutil_h)
  1725.     $(CCC) $(XINCLUDE) gdevx.c
  1726.  
  1727. gdevxini.$(OBJ): gdevxini.c $(GDEVX) $(ctype__h)
  1728.     $(CCC) $(XINCLUDE) gdevxini.c
  1729.  
  1730. gdevxxf.$(OBJ): gdevxxf.c $(GDEVX) $(gsutil_h) $(gxxfont_h)
  1731.     $(CCC) $(XINCLUDE) gdevxxf.c
  1732.  
  1733. ### ---------------------- The bit bucket device ----------------------- ###
  1734.  
  1735. bit_=gdevbit.$(OBJ) gdevprn.$(OBJ)
  1736. bit.dev: $(bit_)
  1737.     $(SHP)gssetdev bit $(bit_)
  1738.  
  1739. gdevbit.$(OBJ): gdevbit.c $(PDEVH)
  1740.  
  1741. ###### ----------------------- PC file formats ---------------------- ######
  1742.  
  1743. gdevpccm.$(OBJ): gdevpccm.c $(AK) \
  1744.   $(gs_h) $(gsmatrix_h) $(gxdevice_h) $(gdevpccm_h)
  1745.  
  1746. ### ------------------------- .BMP file formats ------------------------- ###
  1747.  
  1748. bmp_=gdevbmp.$(OBJ) gdevpccm.$(OBJ) gdevprn.$(OBJ)
  1749.  
  1750. gdevbmp.$(OBJ): gdevbmp.c $(PDEVH) $(gdevpccm_h)
  1751.  
  1752. bmpmono.dev: $(bmp_)
  1753.     $(SHP)gssetdev bmpmono $(bmp_)
  1754.  
  1755. bmp16.dev: $(bmp_)
  1756.     $(SHP)gssetdev bmp16 $(bmp_)
  1757.  
  1758. bmp256.dev: $(bmp_)
  1759.     $(SHP)gssetdev bmp256 $(bmp_)
  1760.  
  1761. bmp16m.dev: $(bmp_)
  1762.     $(SHP)gssetdev bmp16m $(bmp_)
  1763.  
  1764. ### ------------------------- GIF file formats ------------------------- ###
  1765.  
  1766. GIF=gdevgif.$(OBJ) gdevpccm.$(OBJ) gdevprn.$(OBJ)
  1767.  
  1768. gdevgif.$(OBJ): gdevgif.c $(PDEVH) $(gdevpccm_h)
  1769.  
  1770. gifmono.dev: $(GIF)
  1771.     $(SHP)gssetdev gifmono $(GIF)
  1772.  
  1773. gif8.dev: $(GIF)
  1774.     $(SHP)gssetdev gif8 $(GIF)
  1775.  
  1776. ### ------------------------- PCX file formats ------------------------- ###
  1777.  
  1778. pcx_=gdevpcx.$(OBJ) gdevpccm.$(OBJ) gdevprn.$(OBJ)
  1779.  
  1780. gdevpcx.$(OBJ): gdevpcx.c $(PDEVH) $(gdevpccm_h)
  1781.  
  1782. pcxmono.dev: $(pcx_)
  1783.     $(SHP)gssetdev pcxmono $(pcx_)
  1784.  
  1785. pcx16.dev: $(pcx_)
  1786.     $(SHP)gssetdev pcx16 $(pcx_)
  1787.  
  1788. pcx256.dev: $(pcx_)
  1789.     $(SHP)gssetdev pcx256 $(pcx_)
  1790.  
  1791. ###### ------------------- Portable Bitmap devices ------------------ ######
  1792. ### For more information, see the pbm(5), pgm(5), and ppm(5) man pages.  ###
  1793.  
  1794. pxm_=gdevpbm.$(OBJ) gdevprn.$(OBJ)
  1795.  
  1796. gdevpbm.$(OBJ): gdevpbm.c $(PDEVH) $(gxlum_h)
  1797.  
  1798. ### Portable Bitmap (PBM, plain or raw format, magic numbers "P1" or "P4")
  1799.  
  1800. pbm.dev: $(pxm_)
  1801.     $(SHP)gssetdev pbm $(pxm_)
  1802.  
  1803. pbmraw.dev: $(pxm_)
  1804.     $(SHP)gssetdev pbmraw $(pxm_)
  1805.  
  1806. ### Portable Graymap (PGM, plain or raw format, magic numbers "P2" or "P5")
  1807.  
  1808. pgm.dev: $(pxm_)
  1809.     $(SHP)gssetdev pgm $(pxm_)
  1810.  
  1811. pgmraw.dev: $(pxm_)
  1812.     $(SHP)gssetdev pgmraw $(pxm_)
  1813.  
  1814. ### Portable Pixmap (PPM, plain or raw format, magic numbers "P3" or "P6")
  1815.  
  1816. ppm.dev: $(pxm_)
  1817.     $(SHP)gssetdev ppm $(pxm_)
  1818.  
  1819. ppmraw.dev: $(pxm_)
  1820.     $(SHP)gssetdev ppmraw $(pxm_)
  1821.  
  1822. ### -------------------------- TIFF/F device ---------------------------- ###
  1823. ###    This driver outputs images in a TIFF format               ###
  1824. ###    Use -sDEVICE=tiffg3 and                          ###
  1825. ###      -r204x98 for low resolution output, or              ###
  1826. ###      -r204x196 for high resolution output                  ###
  1827. ###    Note also that 3 page sizes are understood: letter, A4, and B4      ###
  1828. ### Note: this driver was contributed by a user: please contact           ###
  1829. ###       Sam Leffler (sam@sgi.com) if you have questions.              ###
  1830.  
  1831. tiffg3_=gdevtiff.$(OBJ) gdevprn.$(OBJ)
  1832. tiffg3.dev: $(tiffg3_)
  1833.     $(SHP)gssetdev tiffg3 $(tiffg3_)
  1834. gdevtiff.$(OBJ): gdevtiff.c $(GDEV) $(gdevprn_h) gdevdfg3.h gdevtiff.h
  1835. #    Copyright (C) 1990, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  1836. #
  1837. # This file is part of Ghostscript.
  1838. #
  1839. # Ghostscript is distributed in the hope that it will be useful, but
  1840. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  1841. # to anyone for the consequences of using it or for whether it serves any
  1842. # particular purpose or works at all, unless he says so in writing.  Refer
  1843. # to the Ghostscript General Public License for full details.
  1844. #
  1845. # Everyone is granted permission to copy, modify and redistribute
  1846. # Ghostscript, but only under the conditions described in the Ghostscript
  1847. # General Public License.  A copy of this license is supposed to have been
  1848. # given to you along with Ghostscript so you can know your rights and
  1849. # responsibilities.  It should be in a file named COPYING.  Among other
  1850. # things, the copyright notice and this notice must be preserved on all
  1851. # copies.
  1852.  
  1853. # Partial makefile for Ghostscript, common to all Unix configurations.
  1854.  
  1855. # This is the last part of the makefile for Unix configurations.
  1856. # Since Unix make doesn't have an 'include' facility, we concatenate
  1857. # the various parts of the makefile together by brute force (in tar_cat).
  1858.  
  1859. # The following prevents GNU make from constructing argument lists that
  1860. # include all environment variables, which can easily be longer than
  1861. # brain-damaged system V allows.
  1862.  
  1863. .NOEXPORT:
  1864.  
  1865. # -------------------------------- Library -------------------------------- #
  1866.  
  1867. ## The Unix platforms
  1868.  
  1869. # We have to include a test for the existence of sys/time.h,
  1870. # because some System V platforms don't have it.
  1871.  
  1872. # All reasonable Unix platforms.
  1873. unix__=gp_nofb.$(OBJ) gp_unix.$(OBJ) gdevpipe.$(OBJ)
  1874. unix_.dev: $(unix__)
  1875.     $(SHP)gssetmod unix_ $(unix__)
  1876.     $(SHP)gsaddmod unix_ -fdev pipe
  1877.  
  1878. gp_unix.$(OBJ): gp_unix.c $(AK) $(memory__h) $(string__h) $(gx_h) $(gp_h) \
  1879.  $(stat__h) $(time__h)
  1880.     if ( test -f /usr/include/sys/time.h ) then $(CCC) gp_unix.c;\
  1881.     else $(CCC) -DNOSYSTIME gp_unix.c; fi
  1882.  
  1883. gdevpipe.$(OBJ): gdevpipe.c $(AK) $(stdio__h) $(gstypes_h) \
  1884.   $(filedev_h) $(stream_h)
  1885.  
  1886. # Brain-damaged System V platforms.
  1887. sysv__=gp_nofb.$(OBJ) gp_unix.$(OBJ) gp_sysv.$(OBJ)
  1888. sysv_.dev: $(sysv__)
  1889.     $(SHP)gssetmod sysv_ $(sysv__)
  1890.  
  1891. gp_sysv.$(OBJ): gp_sysv.c $(time__h) $(AK)
  1892.     if ( test -f /usr/include/sys/time.h ) then $(CCC) gp_sysv.c;\
  1893.     else $(CCC) -DNOSYSTIME gp_sysv.c; fi
  1894.  
  1895. # -------------------------- Auxiliary programs --------------------------- #
  1896.  
  1897. ansi2knr$(XE): ansi2knr.c $(stdio__h) $(string__h) $(malloc__h)
  1898.     $(CC) -o ansi2knr$(XE) $(CFLAGS) ansi2knr.c
  1899.  
  1900. echogs$(XE): echogs.c
  1901.     $(CC) -o echogs$(XE) $(CFLAGS) echogs.c
  1902.  
  1903. # On the RS/6000 (at least), compiling genarch.c with gcc with -O
  1904. # produces a buggy executable.
  1905. genarch$(XE): genarch.c
  1906.     $(CC) -o genarch$(XE) genarch.c
  1907.  
  1908. genconf$(XE): genconf.c
  1909.     $(CC) -o genconf$(XE) genconf.c
  1910.  
  1911. # ----------------------------- Main program ------------------------------ #
  1912.  
  1913. BEGINFILES=
  1914. CCBEGIN=$(CCC) *.c
  1915.  
  1916. # Interpreter main program
  1917.  
  1918. GSUNIX=gs.$(OBJ) gsmain.$(OBJ) $(INT) $(LIBGS)
  1919.  
  1920. # The second call on echogs writes a \.  This is the only
  1921. # way to do it that works with all flavors of shell!
  1922. $(GS)$(XE): $(GSUNIX) ld.tr echogs $(ALL_DEVS)
  1923.     ./echogs -n - $(CC) $(LDFLAGS) $(XLIBDIRS) -o gs $(GSUNIX) >_temp_
  1924.     ./echogs -x 205c >>_temp_
  1925.     cat ld.tr >>_temp_
  1926.     ./echogs - $(EXTRALIBS) -lm >>_temp_
  1927.     $(SH) <_temp_
  1928.  
  1929. # Installation
  1930.  
  1931. TAGS:
  1932.     etags -t *.c *.h
  1933.  
  1934. docdir=$(gsdatadir)/doc
  1935. exdir=$(gsdatadir)/examples
  1936.  
  1937. install: gs
  1938.     -mkdir $(bindir)
  1939.     for f in gs gsbj gsdj gslj gslp gsnd bdftops font2c ps2ascii ps2epsi ; do $(INSTALL_PROGRAM) $$f $(bindir)/$$f ; done
  1940.     -mkdir $(datadir)
  1941.     -mkdir $(gsdatadir)
  1942.     for f in README gslp.ps gs_init.ps gs_dps1.ps gs_fonts.ps gs_lev2.ps gs_statd.ps gs_type0.ps gs_sym_e.ps quit.ps Fontmap uglyr.gsf bdftops.ps decrypt.ps font2c.ps impath.ps landscap.ps level1.ps prfont.ps ps2ascii.ps ps2epsi.ps ps2image.ps pstoppm.ps showpage.ps type1ops.ps wrfont.ps ; do $(INSTALL_DATA) $$f $(gsdatadir)/$$f ; done
  1943.     -mkdir $(docdir)
  1944.     for f in NEWS ansi2knr.1 devices.doc drivers.doc fonts.doc gs.1 hershey.doc history.doc humor.doc language.doc lib.doc make.doc ps2epsi.doc psfiles.doc readme.doc use.doc xfonts.doc ; do $(INSTALL_DATA) $$f $(docdir)/$$f ; done
  1945.     -mkdir $(exdir)
  1946.     for f in chess.ps cheq.ps colorcir.ps golfer.ps escher.ps snowflak.ps tiger.ps ; do $(INSTALL_DATA) $$f $(exdir)/$$f ; done
  1947.